aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-09-10 00:11:35 +0530
committerArun Agrawal <arunagw@gmail.com>2011-09-10 09:38:57 +0530
commitfb73be84695d700f11673ba92f29dfeef3659a37 (patch)
treec6524de33c4c2702b90d416ccd14bb1317dafe5b /activerecord
parent0f04260c514fe0a58adb57f3b8d69f12f18cfe9e (diff)
downloadrails-fb73be84695d700f11673ba92f29dfeef3659a37.tar.gz
rails-fb73be84695d700f11673ba92f29dfeef3659a37.tar.bz2
rails-fb73be84695d700f11673ba92f29dfeef3659a37.zip
Not used variables removed. Warnings removed.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/relations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index b491d63047..0f50ac9a2b 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -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