提交 f43ffdcb 编写于 作者: S Santiago Pastorino

Merge pull request #2966 from arunagw/no_use_warnings_removed

Not used variables removed. Warnings removed.
......@@ -938,7 +938,7 @@ def test_first_or_create_bang_with_valid_block
def test_first_or_create_bang_with_invalid_block
assert_raise(ActiveRecord::RecordInvalid) do
parrot = Bird.where(:color => 'green').first_or_create! { |bird| bird.pirate_id = 1 }
Bird.where(:color => 'green').first_or_create! { |bird| bird.pirate_id = 1 }
end
end
......
......@@ -66,11 +66,11 @@ def setup
end
def test_load_hash_with_integers_as_keys
assert_nothing_raised{person = @person.load(@books)}
assert_nothing_raised{@person.load(@books)}
end
def test_load_hash_with_dates_as_keys
assert_nothing_raised{person = @person.load(@books_date)}
assert_nothing_raised{@person.load(@books_date)}
end
def test_load_expects_hash
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册