diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-21 03:49:54 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-21 03:49:54 -0800 |
commit | 8b815b9dcd5cbea50b415bf3a65651a3187857be (patch) | |
tree | b9131615b8a31ab15614b652966c7842f044b15f /activerecord/test/cases | |
parent | 57b65ef416a4ff8269d8e7ac2c297cbdfa3d0d4b (diff) | |
parent | 7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f (diff) | |
download | rails-8b815b9dcd5cbea50b415bf3a65651a3187857be.tar.gz rails-8b815b9dcd5cbea50b415bf3a65651a3187857be.tar.bz2 rails-8b815b9dcd5cbea50b415bf3a65651a3187857be.zip |
Merge pull request #9010 from vipulnsward/remove_extra_sort_from_test
Remove extra sort from test
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration/change_schema_test.rb | 6 |
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 |