Remove not used variable warnigns
This commit is contained in:
parent
42efdbf23e
commit
4eca91243d
@ -616,8 +616,8 @@ def test_has_and_belongs_to_many_should_not_instantiate_same_records_multiple_ti
|
||||
general = categories.find { |c| c == categories(:general) }
|
||||
technology = categories.find { |c| c == categories(:technology) }
|
||||
|
||||
post1 = general.posts.to_a.find { |p| p == posts(:welcome) }
|
||||
post2 = technology.posts.to_a.find { |p| p == posts(:welcome) }
|
||||
post1 = general.posts.to_a.find { |p| p == welcome }
|
||||
post2 = technology.posts.to_a.find { |p| p == welcome }
|
||||
|
||||
assert_equal post1.object_id, post2.object_id
|
||||
end
|
||||
|
@ -499,7 +499,7 @@ def test_update_column_should_not_modify_updated_at
|
||||
|
||||
def test_update_column_with_one_changed_and_one_updated
|
||||
t = Topic.order('id').limit(1).first
|
||||
title, author_name = t.title, t.author_name
|
||||
author_name = t.author_name
|
||||
t.author_name = 'John'
|
||||
t.update_column(:title, 'super_title')
|
||||
assert_equal 'John', t.author_name
|
||||
|
Loading…
Reference in New Issue
Block a user