diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-07-16 10:09:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-16 10:09:57 +0200 |
commit | f3d67e67abc1fc40b691372af318ede8e30fc4bf (patch) | |
tree | 301350f925e10f533c75923585a0f84d99828897 /activerecord/test/cases/relations_test.rb | |
parent | 1766e8e6ff9133b8254937791d48eedf2a3f7864 (diff) | |
parent | 01c85097d4977b0c141b7c89df15c0750f37c62d (diff) | |
download | rails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.tar.gz rails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.tar.bz2 rails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.zip |
Merge pull request #29771 from kamipo/fix_create_with_using_both_string_and_symbol
Fix `create_with` using both string and symbol
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index eb3449b331..6c35940c2e 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -1482,7 +1482,7 @@ class RelationTest < ActiveRecord::TestCase assert_equal bird, Bird.find_or_initialize_by(name: "bob") end - def test_explicit_create_scope + def test_explicit_create_with hens = Bird.where(name: "hen") assert_equal "hen", hens.new.name |