mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #9010 from vipulnsward/remove_extra_sort_from_test
Remove extra sort from test
This commit is contained in:
commit
8b815b9dcd
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue