mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
💣
We were relying on hash inequality in tests
This commit is contained in:
parent
e13ac306a0
commit
21f081c0ca
2 changed files with 5 additions and 2 deletions
|
@ -1383,7 +1383,10 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
c1 = Post.connection.schema_cache.columns('posts')
|
||||
ActiveRecord::Base.clear_cache!
|
||||
c2 = Post.connection.schema_cache.columns('posts')
|
||||
assert_not_equal c1, c2
|
||||
c1.each_with_index do |v, i|
|
||||
assert_not_same v, c2[i]
|
||||
end
|
||||
assert_equal c1, c2
|
||||
end
|
||||
|
||||
def test_current_scope_is_reset
|
||||
|
|
|
@ -311,7 +311,7 @@ ActiveRecord::Schema.define do
|
|||
end
|
||||
|
||||
create_table :cold_jokes, force: true do |t|
|
||||
t.string :name
|
||||
t.string :cold_name
|
||||
end
|
||||
|
||||
create_table :friendships, force: true do |t|
|
||||
|
|
Loading…
Reference in a new issue