1
0
Fork 0
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:
Sean Griffin 2014-10-28 17:43:58 -06:00
parent e13ac306a0
commit 21f081c0ca
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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|