Mercurial > hg > soundsoftware-site
comparison test/functional/context_menus_controller_test.rb @ 38:33d69fee1d99 cannam
* Merge SVN update from default branch
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:41:40 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b 8661b858af72 |
comparison
equal
deleted
inserted
replaced
29:192d132064a5 | 38:33d69fee1d99 |
---|---|
77 assert_tag :tag => 'a', :content => 'Delete', | 77 assert_tag :tag => 'a', :content => 'Delete', |
78 :attributes => { :href => '/issues/destroy?ids%5B%5D=1&ids%5B%5D=2', | 78 :attributes => { :href => '/issues/destroy?ids%5B%5D=1&ids%5B%5D=2', |
79 :class => 'icon-del' } | 79 :class => 'icon-del' } |
80 end | 80 end |
81 | 81 |
82 def test_context_menu_multiple_issues_of_different_project | 82 def test_context_menu_multiple_issues_of_different_projects |
83 @request.session[:user_id] = 2 | 83 @request.session[:user_id] = 2 |
84 get :issues, :ids => [1, 2, 4] | 84 get :issues, :ids => [1, 2, 6] |
85 assert_response :success | 85 assert_response :success |
86 assert_template 'context_menu' | 86 assert_template 'context_menu' |
87 ids = "ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=6" | |
88 assert_tag :tag => 'a', :content => 'Edit', | |
89 :attributes => { :href => "/issues/bulk_edit?#{ids}", | |
90 :class => 'icon-edit' } | |
91 assert_tag :tag => 'a', :content => 'Closed', | |
92 :attributes => { :href => "/issues/bulk_edit?#{ids}&issue%5Bstatus_id%5D=5", | |
93 :class => '' } | |
94 assert_tag :tag => 'a', :content => 'Immediate', | |
95 :attributes => { :href => "/issues/bulk_edit?#{ids}&issue%5Bpriority_id%5D=8", | |
96 :class => '' } | |
97 assert_tag :tag => 'a', :content => 'John Smith', | |
98 :attributes => { :href => "/issues/bulk_edit?#{ids}&issue%5Bassigned_to_id%5D=2", | |
99 :class => '' } | |
87 assert_tag :tag => 'a', :content => 'Delete', | 100 assert_tag :tag => 'a', :content => 'Delete', |
88 :attributes => { :href => '#', | 101 :attributes => { :href => "/issues/destroy?#{ids}", |
89 :class => 'icon-del disabled' } | 102 :class => 'icon-del' } |
90 end | 103 end |
91 | 104 |
92 end | 105 end |