Commit 14a816daebc25db334827633a4e66e6457e024e6

Authored by Antonio Terceiro
1 parent 8a59c91b

Remove tests that mentioned Environment#category_types

(ActionItem1729)
Showing 1 changed file with 0 additions and 22 deletions   Show diff stats
test/functional/categories_controller_test.rb
... ... @@ -155,28 +155,6 @@ class CategoriesControllerTest < Test::Unit::TestCase
155 155 assert_tag :tag => 'select', :attributes => { :name => "category[display_color]" }
156 156 end
157 157  
158   - should 'not display category_type if only one category is available' do
159   - env.category_types = ['Category']
160   - get :new
161   -
162   - assert_no_tag :tag => 'select', :attributes => { :name => "type" }
163   - end
164   -
165   - should 'have hidden_tag type if only one category is available' do
166   - env.category_types = ['Category']
167   - env.save!
168   - get :new
169   -
170   - assert_tag :tag => 'input', :attributes => { :name => 'type', :value => "Category", :type => 'hidden' }
171   - end
172   -
173   - should 'display category_type if more than one category is available' do
174   - env.category_types = 'Category', 'ProductCategory'
175   - get :new
176   -
177   - assert_tag :tag => 'select', :attributes => { :name => "type" }
178   - end
179   -
180 158 should 'not list regions and product categories' do
181 159 Environment.default.categories.destroy_all
182 160 c = Category.create!(:name => 'Regular category', :environment => Environment.default)
... ...