aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-08-10 06:36:39 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-10 06:36:39 +0900
commitf006de5dc5a709f5dc8604ebd43f7741da30cd9f (patch)
tree94789c1c7f3c8e1c611a30548cd90ecbb34f98ea /activerecord/test/cases
parent67d0c9ee93100dbdcafd20b0632e5bef6735888e (diff)
downloadrails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.tar.gz
rails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.tar.bz2
rails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.zip
Fix broken alignments caused by auto-correct commit 411ccbd
Hash syntax auto-correcting breaks alignments. 411ccbdab2608c62aabdb320d52cb02d446bb39c
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb3
-rw-r--r--activerecord/test/cases/base_test.rb3
-rw-r--r--activerecord/test/cases/nested_attributes_test.rb3
-rw-r--r--activerecord/test/cases/persistence_test.rb3
4 files changed, 8 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
index c4f174e470..ec6ae39835 100644
--- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -283,7 +283,8 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
end
def test_habtm_collection_size_from_params
- devel = Developer.new( projects_attributes: {
+ devel = Developer.new(
+ projects_attributes: {
"0" => {}
})
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 73ca83f21b..cd896e5948 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -279,7 +279,8 @@ class BasicsTest < ActiveRecord::TestCase
end
def test_initialize_with_attributes
- topic = Topic.new( "title" => "initialized from attributes", "written_on" => "2003-12-12 23:23")
+ topic = Topic.new(
+ "title" => "initialized from attributes", "written_on" => "2003-12-12 23:23")
assert_equal("initialized from attributes", topic.title)
end
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb
index f0cf02ce54..788277faea 100644
--- a/activerecord/test/cases/nested_attributes_test.rb
+++ b/activerecord/test/cases/nested_attributes_test.rb
@@ -596,7 +596,8 @@ module NestedAttributesOnACollectionAssociationTests
end
def test_should_save_only_one_association_on_create
- pirate = Pirate.create!( :catchphrase => "Arr",
+ pirate = Pirate.create!(
+ :catchphrase => "Arr",
association_getter => { "foo" => { name: "Grace OMalley" } })
assert_equal 1, pirate.reload.send(@association_name).count
diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb
index 57dc963b62..e293770725 100644
--- a/activerecord/test/cases/persistence_test.rb
+++ b/activerecord/test/cases/persistence_test.rb
@@ -967,7 +967,8 @@ class PersistenceTest < ActiveRecord::TestCase
self.table_name = :widgets
end
- instance = widget.create!( name: "Bob",
+ instance = widget.create!(
+ name: "Bob",
created_at: 1.day.ago,
updated_at: 1.day.ago)