aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/callbacks_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-20 09:38:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-20 09:38:15 -0700
commit96e8e97e78ddcf68474c4c903895c0b33653a720 (patch)
treefba4c9b3505c268d7a86a8dc86599a545c42f391 /activerecord/test/cases/associations/callbacks_test.rb
parent21beedf1ff925613fb1ca9b3cf44d10526b64a2e (diff)
downloadrails-96e8e97e78ddcf68474c4c903895c0b33653a720.tar.gz
rails-96e8e97e78ddcf68474c4c903895c0b33653a720.tar.bz2
rails-96e8e97e78ddcf68474c4c903895c0b33653a720.zip
removing unused variables
Diffstat (limited to 'activerecord/test/cases/associations/callbacks_test.rb')
-rw-r--r--activerecord/test/cases/associations/callbacks_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/callbacks_test.rb b/activerecord/test/cases/associations/callbacks_test.rb
index 15537d6940..6a30e2905b 100644
--- a/activerecord/test/cases/associations/callbacks_test.rb
+++ b/activerecord/test/cases/associations/callbacks_test.rb
@@ -72,7 +72,7 @@ class AssociationCallbacksTest < ActiveRecord::TestCase
def test_has_many_callbacks_for_save_on_parent
jack = Author.new :name => "Jack"
- post = jack.posts_with_callbacks.build :title => "Call me back!", :body => "Before you wake up and after you sleep"
+ jack.posts_with_callbacks.build :title => "Call me back!", :body => "Before you wake up and after you sleep"
callback_log = ["before_adding<new>", "after_adding#{jack.posts_with_callbacks.first.id}"]
assert_equal callback_log, jack.post_log
@@ -149,7 +149,7 @@ class AssociationCallbacksTest < ActiveRecord::TestCase
assert !@david.unchangable_posts.include?(@authorless)
begin
@david.unchangable_posts << @authorless
- rescue Exception => e
+ rescue Exception
end
assert @david.post_log.empty?
assert !@david.unchangable_posts.include?(@authorless)