aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations/uniqueness_validation_test.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-03-18 23:07:16 +0530
committerArun Agrawal <arunagw@gmail.com>2012-03-27 15:06:14 +0530
commit4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299 (patch)
tree69fb69afbff6deca1dbfafaa25845a7fbc96854e /activerecord/test/cases/validations/uniqueness_validation_test.rb
parentded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b (diff)
downloadrails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.tar.gz
rails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.tar.bz2
rails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.zip
removed unused variables
Diffstat (limited to 'activerecord/test/cases/validations/uniqueness_validation_test.rb')
-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"