Skip to content

Commit

Permalink
removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Mar 27, 2012
1 parent ded74df commit 4cd0b4e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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"
Expand Down

0 comments on commit 4cd0b4e

Please sign in to comment.