From 14a816daebc25db334827633a4e66e6457e024e6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 17 Jan 2011 18:50:03 -0300 Subject: [PATCH] Remove tests that mentioned Environment#category_types --- test/functional/categories_controller_test.rb | 22 ---------------------- 1 file changed, 0 insertions(+), 22 deletions(-) diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb index 3838065..84f4ff9 100644 --- a/test/functional/categories_controller_test.rb +++ b/test/functional/categories_controller_test.rb @@ -155,28 +155,6 @@ class CategoriesControllerTest < Test::Unit::TestCase assert_tag :tag => 'select', :attributes => { :name => "category[display_color]" } end - should 'not display category_type if only one category is available' do - env.category_types = ['Category'] - get :new - - assert_no_tag :tag => 'select', :attributes => { :name => "type" } - end - - should 'have hidden_tag type if only one category is available' do - env.category_types = ['Category'] - env.save! - get :new - - assert_tag :tag => 'input', :attributes => { :name => 'type', :value => "Category", :type => 'hidden' } - end - - should 'display category_type if more than one category is available' do - env.category_types = 'Category', 'ProductCategory' - get :new - - assert_tag :tag => 'select', :attributes => { :name => "type" } - end - should 'not list regions and product categories' do Environment.default.categories.destroy_all c = Category.create!(:name => 'Regular category', :environment => Environment.default) -- libgit2 0.21.2