Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixed warning: unused variables t1 and t2 #5612

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2012
  1. @sandeepr-sourcebits
This page is out of date. Refresh to see the latest.
View
4 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"
Something went wrong with that request. Please try again.