Permalink
Browse files

Merge pull request #5499 from arunagw/remove_unused_code

removed unused variables
  • Loading branch information...
spastorino committed Mar 27, 2012
2 parents 67b2404 + 4cd0b4e commit 888fcca01b736b7f91041b7a6a1b162af6688f7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/validations/uniqueness_validation_test.rb
@@ -328,8 +328,8 @@ def test_validate_straight_inheritance_uniqueness
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"

0 comments on commit 888fcca

Please sign in to comment.