Permalink
Browse files

Not used variables removed. Warnings removed.

  • Loading branch information...
1 parent 0f04260 commit fb73be84695d700f11673ba92f29dfeef3659a37 @arunagw arunagw committed Sep 9, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 activerecord/test/cases/relations_test.rb
  2. +2 −2 activeresource/test/cases/base/load_test.rb
View
2 activerecord/test/cases/relations_test.rb
@@ -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
View
4 activeresource/test/cases/base/load_test.rb
@@ -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

0 comments on commit fb73be8

Please sign in to comment.