Skip to content

Commit

Permalink
Remove not used variable warnigns
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Dec 1, 2012
1 parent 42efdbf commit 4eca912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions activerecord/test/cases/associations/eager_test.rb
Expand Up @@ -616,8 +616,8 @@ def test_has_and_belongs_to_many_should_not_instantiate_same_records_multiple_ti
general = categories.find { |c| c == categories(:general) }
technology = categories.find { |c| c == categories(:technology) }

post1 = general.posts.to_a.find { |p| p == posts(:welcome) }
post2 = technology.posts.to_a.find { |p| p == posts(:welcome) }
post1 = general.posts.to_a.find { |p| p == welcome }
post2 = technology.posts.to_a.find { |p| p == welcome }

assert_equal post1.object_id, post2.object_id
end
Expand Down Expand Up @@ -984,10 +984,10 @@ def test_preload_has_many_with_association_condition_and_default_scope
post = Post.create!(:title => 'Beaches', :body => "I like beaches!")
Reader.create! :person => people(:david), :post => post
LazyReader.create! :person => people(:susan), :post => post

assert_equal 1, post.lazy_readers.to_a.size
assert_equal 2, post.lazy_readers_skimmers_or_not.to_a.size

post_with_readers = Post.includes(:lazy_readers_skimmers_or_not).find(post.id)
assert_equal 2, post_with_readers.lazy_readers_skimmers_or_not.to_a.size
end
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/persistence_test.rb
Expand Up @@ -499,7 +499,7 @@ def test_update_column_should_not_modify_updated_at

def test_update_column_with_one_changed_and_one_updated
t = Topic.order('id').limit(1).first
title, author_name = t.title, t.author_name
author_name = t.author_name
t.author_name = 'John'
t.update_column(:title, 'super_title')
assert_equal 'John', t.author_name
Expand Down

0 comments on commit 4eca912

Please sign in to comment.