diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-07 16:26:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-07 16:26:12 +0000 |
commit | 464cef8643e0bd5bf860e1fb7e4b65516dd12745 (patch) | |
tree | a1de04cfa3237719a7ec892f34615f0292e9b5d0 /test | |
parent | d29638845a9c5d69f9ad6e9ab8c81ed29c808c3f (diff) | |
download | redmine-464cef8643e0bd5bf860e1fb7e4b65516dd12745.tar.gz redmine-464cef8643e0bd5bf860e1fb7e4b65516dd12745.zip |
Removed the "Move" button for issues since they can be moved from the bulk edit form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8537 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/issue_moves_controller_test.rb | 58 |
2 files changed, 1 insertions, 61 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 020f71163..b5650091c 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -88,9 +88,7 @@ class ContextMenusControllerTest < ActionController::TestCase assert_tag :tag => 'a', :content => 'Copy', :attributes => { :href => "/issues/move/new?copy_options%5Bcopy%5D=t&#{ids}", :class => 'icon-copy' } - assert_tag :tag => 'a', :content => 'Move', - :attributes => { :href => "/issues/move/new?#{ids}", - :class => 'icon-move' } + assert_no_tag :tag => 'a', :content => 'Move' assert_tag :tag => 'a', :content => 'Delete', :attributes => { :href => "/issues?#{ids}", :class => 'icon-del' } diff --git a/test/functional/issue_moves_controller_test.rb b/test/functional/issue_moves_controller_test.rb index 9f9d25822..26feeff5f 100644 --- a/test/functional/issue_moves_controller_test.rb +++ b/test/functional/issue_moves_controller_test.rb @@ -34,64 +34,6 @@ class IssueMovesControllerTest < ActionController::TestCase :parent => {:tag => 'select', :attributes => {:id => 'priority_id'} } end - def test_create_one_issue_to_another_project - @request.session[:user_id] = 2 - post :create, :id => 1, :new_project_id => 2, :tracker_id => '', :assigned_to_id => '', :status_id => '', :start_date => '', :due_date => '' - assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - assert_equal 2, Issue.find(1).project_id - end - - def test_create_one_issue_to_another_project_should_follow_when_needed - @request.session[:user_id] = 2 - post :create, :id => 1, :new_project_id => 2, :follow => '1' - assert_redirected_to '/issues/1' - end - - def test_bulk_create_to_another_project - @request.session[:user_id] = 2 - post :create, :ids => [1, 2], :new_project_id => 2 - assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - # Issues moved to project 2 - assert_equal 2, Issue.find(1).project_id - assert_equal 2, Issue.find(2).project_id - # No tracker change - assert_equal 1, Issue.find(1).tracker_id - assert_equal 2, Issue.find(2).tracker_id - end - - def test_bulk_create_to_another_tracker - @request.session[:user_id] = 2 - post :create, :ids => [1, 2], :new_tracker_id => 2 - assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - assert_equal 2, Issue.find(1).tracker_id - assert_equal 2, Issue.find(2).tracker_id - end - - context "#create via bulk move" do - setup do - @request.session[:user_id] = 2 - end - - should "allow changing the issue priority" do - post :create, :ids => [1, 2], :priority_id => 6 - - assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - assert_equal 6, Issue.find(1).priority_id - assert_equal 6, Issue.find(2).priority_id - - end - - should "allow adding a note when moving" do - post :create, :ids => [1, 2], :notes => 'Moving two issues' - - assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' - assert_equal 'Moving two issues', Issue.find(1).journals.sort_by(&:id).last.notes - assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes - - end - - end - def test_bulk_copy_to_another_project @request.session[:user_id] = 2 assert_difference 'Issue.count', 2 do |