Commit 1a39b2bf371a56bced1786a527784d3938f2de08
1 parent
357b937d
Exists in
master
and in
29 other branches
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 | 13 | @profile = create_user('blog_helper_test').person |
14 | 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 | 16 | should 'display select for categories' do |
34 | 17 | category_1 = fast_create(ProductCategory, :name => 'Category 1', :environment_id => @environment.id) |
35 | 18 | fast_create(ProductCategory, :name => 'Category 2.1', :environment_id => @environment.id, :parent_id => category_1.id) | ... | ... |