Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1550 from rsim/fix_test_has_many_with_pluralize_t…

…able_names_false

Do not hardcode :id as it was ignored by mass assignment filter
  • Loading branch information...
commit 8c1762f11e4c2b32a0aff6cbda27f359d8c9d31c 2 parents 47ac896 + e58ee1d
@fxn fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/associations/join_model_test.rb
View
4 activerecord/test/cases/associations/join_model_test.rb
@@ -722,8 +722,8 @@ def test_has_many_through_goes_through_all_sti_classes
end
def test_has_many_with_pluralize_table_names_false
- engine = Engine.create!(:car_id => 1)
- aircraft = Aircraft.create!(:name => "Airbus 380", :id => 1)
+ aircraft = Aircraft.create!(:name => "Airbus 380")
+ engine = Engine.create!(:car_id => aircraft.id)
assert_equal aircraft.engines, [engine]
end

0 comments on commit 8c1762f

Please sign in to comment.
Something went wrong with that request. Please try again.