mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removed unused variables
This commit is contained in:
parent
ded74dfd8b
commit
4cd0b4e7c3
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue