aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/autosave_association_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-05-24 03:35:20 -0700
committerAndrew White <andyw@pixeltrix.co.uk>2013-05-24 03:35:20 -0700
commit7101a857b46e1c8aa3b9dd9641c4fc5b28a143e6 (patch)
treedf7bb42f0850895d0aea3a4ad1de237d970a84f1 /activerecord/test/cases/autosave_association_test.rb
parentd29399061e54092fdbf57780c38e19dd1921f45d (diff)
parent0e14973a3368945d9a7fddb4bfeefe3fc2f2a246 (diff)
downloadrails-7101a857b46e1c8aa3b9dd9641c4fc5b28a143e6.tar.gz
rails-7101a857b46e1c8aa3b9dd9641c4fc5b28a143e6.tar.bz2
rails-7101a857b46e1c8aa3b9dd9641c4fc5b28a143e6.zip
Merge pull request #10745 from arunagw/build_fix_ruby187
Build fix ruby187
Diffstat (limited to 'activerecord/test/cases/autosave_association_test.rb')
-rw-r--r--activerecord/test/cases/autosave_association_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb
index bb07cf4185..f7697fa77b 100644
--- a/activerecord/test/cases/autosave_association_test.rb
+++ b/activerecord/test/cases/autosave_association_test.rb
@@ -781,17 +781,17 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
end
def test_should_save_new_record_that_has_same_value_as_existing_record_marked_for_destruction_on_field_that_has_unique_index
- Bird.connection.add_index :birds, :name, unique: true
+ Bird.connection.add_index :birds, :name, :unique => true
- 3.times { |i| @pirate.birds.create(name: "unique_birds_#{i}") }
+ 3.times { |i| @pirate.birds.create(:name => "unique_birds_#{i}") }
@pirate.birds[0].mark_for_destruction
- @pirate.birds.build(name: @pirate.birds[0].name)
+ @pirate.birds.build(:name => @pirate.birds[0].name)
@pirate.save!
assert_equal 3, @pirate.birds.reload.length
ensure
- Bird.connection.remove_index :birds, column: :name
+ Bird.connection.remove_index :birds, :column => :name
end
# Add and remove callbacks tests for association collections.