Commit e9d071b86013c72e903c0d3db66bef164ce77428

Authored by JoenioCosta
1 parent 5172b2a7

ActionItem261: added more tests to validate uniqueness of slug in scope


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1982 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/unit/category_test.rb
@@ -162,10 +162,10 @@ class CategoryTest < Test::Unit::TestCase @@ -162,10 +162,10 @@ class CategoryTest < Test::Unit::TestCase
162 162
163 root1 = Category.create!(:name => 'root category 1', :environment_id => @env.id) 163 root1 = Category.create!(:name => 'root category 1', :environment_id => @env.id)
164 164
165 - #assert_nothing_raised ActiveRecord::RecordInvalid do 165 + assert_nothing_raised ActiveRecord::RecordInvalid do
166 Category.create!(:name => 'test category', :environment_id => @env.id, :parent => root1) 166 Category.create!(:name => 'test category', :environment_id => @env.id, :parent => root1)
167 Category.create!(:name => 'test category', :environment_id => @env.id, :parent => nil) 167 Category.create!(:name => 'test category', :environment_id => @env.id, :parent => nil)
168 - #end 168 + end
169 end 169 end
170 170
171 def test_renaming_a_category_should_change_path_of_children 171 def test_renaming_a_category_should_change_path_of_children