Skip to content

Commit

Permalink
Remove extra sort from test
Browse files Browse the repository at this point in the history
Cleanup change_schema tests to remove extra sorts on columns.
  • Loading branch information
vipulnsward committed Jan 21, 2013
1 parent e4dbfce commit 7f5dd5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/test/cases/migration/change_schema_test.rb
Expand Up @@ -35,7 +35,7 @@ def test_create_table_adds_id
t.column :foo, :string t.column :foo, :string
end end


assert_equal %w(foo id), connection.columns(:testings).map(&:name).sort assert_equal %w(id foo), connection.columns(:testings).map(&:name)
end end


def test_create_table_with_not_null_column def test_create_table_with_not_null_column
Expand Down Expand Up @@ -119,7 +119,7 @@ def test_create_table_with_primary_key_prefix_as_table_name_with_underscore
t.column :foo, :string t.column :foo, :string
end 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 end


def test_create_table_with_primary_key_prefix_as_table_name def test_create_table_with_primary_key_prefix_as_table_name
Expand All @@ -129,7 +129,7 @@ def test_create_table_with_primary_key_prefix_as_table_name
t.column :foo, :string t.column :foo, :string
end end


assert_equal %w(foo testingid), connection.columns(:testings).map(&:name).sort assert_equal %w(testingid foo), connection.columns(:testings).map(&:name)
end end


def test_create_table_raises_when_redefining_primary_key_column def test_create_table_raises_when_redefining_primary_key_column
Expand Down

0 comments on commit 7f5dd5b

Please sign in to comment.