Skip to content

Commit

Permalink
Do not hardcode :id as it was ignored by mass assignment filter
Browse files Browse the repository at this point in the history
As a result test was failing on Oracle where ids are assigned by default from 1000
  • Loading branch information
rsim committed Jun 8, 2011
1 parent 47ac896 commit e58ee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/associations/join_model_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit e58ee1d

Please sign in to comment.