Not used variables removed. Warnings removed.

This commit is contained in:
Arun Agrawal
2011-09-10 00:11:35 +05:30
parent 0f04260c51
commit fb73be8469
2 changed files with 3 additions and 3 deletions

View File

@@ -938,7 +938,7 @@ class RelationTest < ActiveRecord::TestCase
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

View File

@@ -66,11 +66,11 @@ class BaseLoadTest < Test::Unit::TestCase
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