diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-03-18 23:07:16 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-03-27 15:06:14 +0530 |
commit | 4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299 (patch) | |
tree | 69fb69afbff6deca1dbfafaa25845a7fbc96854e /activerecord | |
parent | ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b (diff) | |
download | rails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.tar.gz rails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.tar.bz2 rails-4cd0b4e7c3c8617ea12f0f05d8388d53b3f99299.zip |
removed unused variables
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/validations/uniqueness_validation_test.rb | 4 |
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" |