aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-03-27 08:01:53 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-03-27 08:01:53 -0700
commit888fcca01b736b7f91041b7a6a1b162af6688f7a (patch)
treee76eac84bc13d45ea3afeecf2458ac9f2de180c8
parent67b2404cf9b2c7e0f86bf0294571ef97391a6dcd (diff)
parent4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299 (diff)
downloadrails-888fcca01b736b7f91041b7a6a1b162af6688f7a.tar.gz
rails-888fcca01b736b7f91041b7a6a1b162af6688f7a.tar.bz2
rails-888fcca01b736b7f91041b7a6a1b162af6688f7a.zip
Merge pull request #5499 from arunagw/remove_unused_code
removed unused variables
-rw-r--r--activerecord/test/cases/validations/uniqueness_validation_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/validations/uniqueness_validation_test.rb b/activerecord/test/cases/validations/uniqueness_validation_test.rb
index 376c0000c7..ec09479c95 100644
--- a/activerecord/test/cases/validations/uniqueness_validation_test.rb
+++ b/activerecord/test/cases/validations/uniqueness_validation_test.rb
@@ -328,8 +328,8 @@ class UniquenessValidationTest < ActiveRecord::TestCase
def test_validate_uniqueness_with_conditions
Topic.validates_uniqueness_of(:title, :conditions => Topic.where('approved = ?', true))
- t1 = Topic.create("title" => "I'm a topic", "approved" => true)
- t2 = Topic.create("title" => "I'm an unapproved topic", "approved" => false)
+ Topic.create("title" => "I'm a topic", "approved" => true)
+ Topic.create("title" => "I'm an unapproved topic", "approved" => false)
t3 = Topic.new("title" => "I'm a topic", "approved" => true)
assert !t3.valid?, "t3 shouldn't be valid"