Commit 1a39b2bf371a56bced1786a527784d3938f2de08

Authored by Rodrigo Souto
1 parent 357b937d

Remove obsolete tests

Showing 1 changed file with 0 additions and 17 deletions   Show diff stats
test/unit/manage_products_helper_test.rb
@@ -13,23 +13,6 @@ class ManageProductsHelperTest < ActiveSupport::TestCase @@ -13,23 +13,6 @@ class ManageProductsHelperTest < ActiveSupport::TestCase
13 @profile = create_user('blog_helper_test').person 13 @profile = create_user('blog_helper_test').person
14 end 14 end
15 15
16 - should 'omit second category when lenght of all names is over 60 chars' do  
17 - category_1 = fast_create(ProductCategory, :name => ('Category 1' * 5), :environment_id => @environment.id)  
18 - category_2 = fast_create(ProductCategory, :name => ('Category 2' * 5), :environment_id => @environment.id, :parent_id => category_1.id)  
19 - category_3 = fast_create(ProductCategory, :name => ('Category 3' * 5), :environment_id => @environment.id, :parent_id => category_2.id)  
20 -  
21 - assert_match /Category 1/, hierarchy_category_navigation(category_3)  
22 - assert_no_match /Category 2/, hierarchy_category_navigation(category_3)  
23 - end  
24 -  
25 - should 'show dots when lenght of all names is over 60 chars' do  
26 - category_1 = fast_create(ProductCategory, :name => ('Category 1' * 5), :environment_id => @environment.id)  
27 - category_2 = fast_create(ProductCategory, :name => ('Category 2' * 5), :environment_id => @environment.id, :parent_id => category_1.id)  
28 - category_3 = fast_create(ProductCategory, :name => ('Category 3' * 5), :environment_id => @environment.id, :parent_id => category_2.id)  
29 -  
30 - assert_match /…/, hierarchy_category_navigation(category_3)  
31 - end  
32 -  
33 should 'display select for categories' do 16 should 'display select for categories' do
34 category_1 = fast_create(ProductCategory, :name => 'Category 1', :environment_id => @environment.id) 17 category_1 = fast_create(ProductCategory, :name => 'Category 1', :environment_id => @environment.id)
35 fast_create(ProductCategory, :name => 'Category 2.1', :environment_id => @environment.id, :parent_id => category_1.id) 18 fast_create(ProductCategory, :name => 'Category 2.1', :environment_id => @environment.id, :parent_id => category_1.id)