From 1a39b2bf371a56bced1786a527784d3938f2de08 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 5 May 2014 19:04:58 +0000 Subject: [PATCH] Remove obsolete tests --- test/unit/manage_products_helper_test.rb | 17 ----------------- 1 file changed, 0 insertions(+), 17 deletions(-) diff --git a/test/unit/manage_products_helper_test.rb b/test/unit/manage_products_helper_test.rb index af7a6c5..5f91607 100644 --- a/test/unit/manage_products_helper_test.rb +++ b/test/unit/manage_products_helper_test.rb @@ -13,23 +13,6 @@ class ManageProductsHelperTest < ActiveSupport::TestCase @profile = create_user('blog_helper_test').person end - should 'omit second category when lenght of all names is over 60 chars' do - category_1 = fast_create(ProductCategory, :name => ('Category 1' * 5), :environment_id => @environment.id) - category_2 = fast_create(ProductCategory, :name => ('Category 2' * 5), :environment_id => @environment.id, :parent_id => category_1.id) - category_3 = fast_create(ProductCategory, :name => ('Category 3' * 5), :environment_id => @environment.id, :parent_id => category_2.id) - - assert_match /Category 1/, hierarchy_category_navigation(category_3) - assert_no_match /Category 2/, hierarchy_category_navigation(category_3) - end - - should 'show dots when lenght of all names is over 60 chars' do - category_1 = fast_create(ProductCategory, :name => ('Category 1' * 5), :environment_id => @environment.id) - category_2 = fast_create(ProductCategory, :name => ('Category 2' * 5), :environment_id => @environment.id, :parent_id => category_1.id) - category_3 = fast_create(ProductCategory, :name => ('Category 3' * 5), :environment_id => @environment.id, :parent_id => category_2.id) - - assert_match /…/, hierarchy_category_navigation(category_3) - end - should 'display select for categories' do category_1 = fast_create(ProductCategory, :name => 'Category 1', :environment_id => @environment.id) fast_create(ProductCategory, :name => 'Category 2.1', :environment_id => @environment.id, :parent_id => category_1.id) -- libgit2 0.21.2