aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-01-21 14:04:55 +0530
committerVipul A M <vipulnsward@gmail.com>2013-01-21 14:04:55 +0530
commit7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f (patch)
treeebf9a46fbcf2302b112e26c303b1e41ca3a69d90 /activerecord/test/cases
parente4dbfce1c3db0a24093e2314ecaa724b3dd19760 (diff)
downloadrails-7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f.tar.gz
rails-7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f.tar.bz2
rails-7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f.zip
Remove extra sort from test
Cleanup change_schema tests to remove extra sorts on columns.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/migration/change_schema_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/migration/change_schema_test.rb b/activerecord/test/cases/migration/change_schema_test.rb
index 5ac4a16f33..cad759bba9 100644
--- a/activerecord/test/cases/migration/change_schema_test.rb
+++ b/activerecord/test/cases/migration/change_schema_test.rb
@@ -35,7 +35,7 @@ module ActiveRecord
t.column :foo, :string
end
- assert_equal %w(foo id), connection.columns(:testings).map(&:name).sort
+ assert_equal %w(id foo), connection.columns(:testings).map(&:name)
end
def test_create_table_with_not_null_column
@@ -119,7 +119,7 @@ module ActiveRecord
t.column :foo, :string
end
- assert_equal %w(foo testing_id), connection.columns(:testings).map(&:name).sort
+ assert_equal %w(testing_id foo), connection.columns(:testings).map(&:name)
end
def test_create_table_with_primary_key_prefix_as_table_name
@@ -129,7 +129,7 @@ module ActiveRecord
t.column :foo, :string
end
- assert_equal %w(foo testingid), connection.columns(:testings).map(&:name).sort
+ assert_equal %w(testingid foo), connection.columns(:testings).map(&:name)
end
def test_create_table_raises_when_redefining_primary_key_column