Permalink
Browse files

Do not hardcode :id as it was ignored by mass assignment filter

As a result test was failing on Oracle where ids are assigned by default from 1000
  • Loading branch information...
1 parent 47ac896 commit e58ee1dcccd86573134c617997c38f8be63fe577 @rsim rsim committed Jun 8, 2011
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 e58ee1d

Please sign in to comment.