Commit b6640364e4f52997d76c7b5d748d3077de68bbbf

Authored by Victor Costa
1 parent a7dfb5fb

Enable edition of track visibility attributes

plugins/community_track/lib/community_track_plugin/step_helper.rb
@@ -16,11 +16,6 @@ module CommunityTrackPlugin::StepHelper @@ -16,11 +16,6 @@ module CommunityTrackPlugin::StepHelper
16 CommunityTrackPlugin::StepHelper.status_classes[status_index(step)] 16 CommunityTrackPlugin::StepHelper.status_classes[status_index(step)]
17 end 17 end
18 18
19 - def custom_options_for_article(article)  
20 - #no options for step?  
21 - nil  
22 - end  
23 -  
24 def link_to_step_tool(step, options={}) 19 def link_to_step_tool(step, options={})
25 if step.tool 20 if step.tool
26 link_to step.tool.view_url, options do 21 link_to step.tool.view_url, options do
plugins/community_track/test/functional/community_track_plugin_cms_controller_test.rb
@@ -39,9 +39,4 @@ class CmsControllerTest < ActionController::TestCase @@ -39,9 +39,4 @@ class CmsControllerTest < ActionController::TestCase
39 assert_equal 'changed', @step.name 39 assert_equal 'changed', @step.name
40 end 40 end
41 41
42 - should 'do not be able to edit visibility of step' do  
43 - get :edit, :id => @step.id, :profile => @profile.identifier  
44 - assert_no_tag :tag => 'input', :attributes => { :name => 'article[published]' }  
45 - end  
46 -  
47 end 42 end
plugins/community_track/test/unit/community_track_plugin/step_helper_test.rb
@@ -31,10 +31,6 @@ class StepHelperTest < ActiveSupport::TestCase @@ -31,10 +31,6 @@ class StepHelperTest < ActiveSupport::TestCase
31 assert_equal _('Soon'), status_description(@step) 31 assert_equal _('Soon'), status_description(@step)
32 end 32 end
33 33
34 - should 'return nil at custom_options_for_article' do  
35 - assert !custom_options_for_article(fast_create(Article))  
36 - end  
37 -  
38 should 'return content without link if there is no tool in a step' do 34 should 'return content without link if there is no tool in a step' do
39 link = link_to_step_tool(@step) do 35 link = link_to_step_tool(@step) do
40 "content" 36 "content"