Commit 4602f0d6951206747997aede4d691c2a82632269

Authored by AntonioTerceiro
1 parent fd0dbf59

ActionItem0: removing funcionality test from controller in application



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@306 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/edit_template_controller_test.rb
... ... @@ -12,26 +12,10 @@ class EditTemplateControllerTest < Test::Unit::TestCase
12 12 @controller = EditTemplateController.new
13 13 @request = ActionController::TestRequest.new
14 14 @response = ActionController::TestResponse.new
15   - @rejected_dirs = ['.', '..', '.svn']
16   - @theme_dir_path = "#{RAILS_ROOT}/public/themes"
17   - @icons_dir_path = "#{RAILS_ROOT}/public/icons"
18 15 end
19 16  
20   - def test_select_theme_html
21   - get :index
22   - available_themes = Dir.new(@theme_dir_path).to_a - @rejected_dirs
23   - available_themes.collect do |t|
24   - assert_tag :tag => 'select', :attributes => {:id => 'theme_name', :name => 'theme_name'}, :child => {:tag =>"option", :attributes => {:value => t}}
25   - end
26   - end
27   -
28   -
29   - def test_select_icons_theme_html
30   - get :index
31   - available_icons = Dir.new(@icons_dir_path).to_a - @rejected_dirs
32   - available_icons.collect do |t|
33   - assert_tag :tag => 'select', :attributes => {:id => 'icons_theme_name', :name => 'icons_theme_name'}, :child => {:tag =>"option", :attributes => {:value => t}}
34   - end
  17 + def test
  18 + flunk 'FIXME: nothing tested yet'
35 19 end
36 20  
37 21 end
... ...