diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-12 22:09:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 22:09:12 +0900 |
commit | 8c249086823eecd23e2e7bd6084ca30ee0e0f6d5 (patch) | |
tree | ee64e419cc3871c3e753285d6a9fd38e4effecc3 /activerecord/test/cases/associations/has_many_associations_test.rb | |
parent | 59d32a6eab144b808bdd9d96b6e6c2dc32e66f32 (diff) | |
parent | fa8c525d20ff14e4a9d367d2845b446267065bcc (diff) | |
download | rails-8c249086823eecd23e2e7bd6084ca30ee0e0f6d5.tar.gz rails-8c249086823eecd23e2e7bd6084ca30ee0e0f6d5.tar.bz2 rails-8c249086823eecd23e2e7bd6084ca30ee0e0f6d5.zip |
Merge pull request #28830 from kamipo/dont_regard_extension_block_as_scope
Fix `automatic_inverse_of` not to be disabled if extension block is given
Diffstat (limited to 'activerecord/test/cases/associations/has_many_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index 6a7efe2121..32285f269a 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -2578,22 +2578,22 @@ class HasManyAssociationsTest < ActiveRecord::TestCase test "association with extend option" do post = posts(:welcome) - assert_equal "lifo", post.comments_with_extend.author - assert_equal "hello", post.comments_with_extend.greeting + assert_equal "lifo", post.comments_with_extend.author + assert_equal "hello :)", post.comments_with_extend.greeting end test "association with extend option with multiple extensions" do post = posts(:welcome) - assert_equal "lifo", post.comments_with_extend_2.author - assert_equal "hullo", post.comments_with_extend_2.greeting + assert_equal "lifo", post.comments_with_extend_2.author + assert_equal "hullo :)", post.comments_with_extend_2.greeting end test "extend option affects per association" do post = posts(:welcome) - assert_equal "lifo", post.comments_with_extend.author - assert_equal "lifo", post.comments_with_extend_2.author - assert_equal "hello", post.comments_with_extend.greeting - assert_equal "hullo", post.comments_with_extend_2.greeting + assert_equal "lifo", post.comments_with_extend.author + assert_equal "lifo", post.comments_with_extend_2.author + assert_equal "hello :)", post.comments_with_extend.greeting + assert_equal "hullo :)", post.comments_with_extend_2.greeting end test "delete record with complex joins" do |