Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove extra sort from test

Cleanup change_schema tests to remove extra sorts on columns.
  • Loading branch information...
commit 7f5dd5b629cf4e43d60a40db9b7d13af6d6dfe7f 1 parent e4dbfce
@vipulnsward vipulnsward authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/migration/change_schema_test.rb
View
6 activerecord/test/cases/migration/change_schema_test.rb
@@ -35,7 +35,7 @@ def test_create_table_adds_id
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 @@ def test_create_table_with_primary_key_prefix_as_table_name_with_underscore
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 @@ def test_create_table_with_primary_key_prefix_as_table_name
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
Please sign in to comment.
Something went wrong with that request. Please try again.