##// END OF EJS Templates
Replace Date.today with User.current.today (#22320)....
Replace Date.today with User.current.today (#22320). Depending on the offset between a user's configured timezone and the server timezone, Date.today may be more or less often wrong from the user's perspective, leading to things like issues marked as overdue too early or too late, or yesterday / tomorrow being displayed / selected where 'today' is intended. A test case illustrating the problem with Issue#overdue? is included Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14856:cda9c63d9c21
r14997:ed50d42210ea
Show More
context_menus_controller_test.rb
300 lines | 12.5 KiB | text/x-ruby | RubyLexer
/ test / functional / context_menus_controller_test.rb
Jean-Philippe Lang
Functional tests cleanup....
r10709 # Redmine - project management software
Jean-Philippe Lang
Updates copyright for 2016....
r14856 # Copyright (C) 2006-2016 Jean-Philippe Lang
Jean-Philippe Lang
Functional tests cleanup....
r10709 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Jean-Baptiste Barth
Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050...
r4395 require File.expand_path('../../test_helper', __FILE__)
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892
class ContextMenusControllerTest < ActionController::TestCase
Toshi MARUYAMA
Rails3: replace "all" fixtures at test/functional/context_menus_controller_test.rb...
r7369 fixtures :projects,
:trackers,
:projects_trackers,
:roles,
:member_roles,
:members,
:enabled_modules,
:workflows,
:journals, :journal_details,
:versions,
:issues, :issue_statuses, :issue_categories,
:users,
Jean-Philippe Lang
Add missing fixtures....
r7898 :enumerations,
:time_entries
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892
def test_context_menu_one_issue
@request.session[:user_id] = 2
get :issues, :ids => [1]
assert_response :success
Toshi MARUYAMA
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest...
r12523 assert_template 'context_menus/issues'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
assert_select 'a.icon-edit[href=?]', '/issues/1/edit', :text => 'Edit'
assert_select 'a.icon-copy[href=?]', '/projects/ecookbook/issues/1/copy', :text => 'Copy'
assert_select 'a.icon-del[href=?]', '/issues?ids%5B%5D=1', :text => 'Delete'
# Statuses
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bstatus_id%5D=5', :text => 'Closed'
assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bpriority_id%5D=8', :text => 'Immediate'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 # No inactive priorities
assert_select 'a', :text => /Inactive Priority/, :count => 0
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 # Versions
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bfixed_version_id%5D=3', :text => '2.0'
assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bfixed_version_id%5D=4', :text => 'eCookbook Subproject 1 - 2.0'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 # Assignees
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bassigned_to_id%5D=3', :text => 'Dave Lopper'
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 end
def test_context_menu_one_issue_by_anonymous
Jean-Philippe Lang
Merged rails-4.1 branch (#14534)....
r13100 with_settings :default_language => 'en' do
get :issues, :ids => [1]
assert_response :success
assert_template 'context_menus/issues'
Jean-Philippe Lang
Replaced some #assert_tag with #assert_select....
r13238 assert_select 'a.icon-del.disabled[href="#"]', :text => 'Delete'
Jean-Philippe Lang
Merged rails-4.1 branch (#14534)....
r13100 end
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 end
Toshi MARUYAMA
remove trailing white-spaces from test/functional/context_menus_controller_test.rb....
r6700
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 def test_context_menu_multiple_issues_of_same_project
@request.session[:user_id] = 2
get :issues, :ids => [1, 2]
assert_response :success
Toshi MARUYAMA
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest...
r12523 assert_template 'context_menus/issues'
Jean-Philippe Lang
Trying to fix random failures with postgresql due to different ids order in urls....
r4553 assert_not_nil assigns(:issues)
assert_equal [1, 2], assigns(:issues).map(&:id).sort
Toshi MARUYAMA
remove trailing white-spaces from test/functional/context_menus_controller_test.rb....
r6700
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 ids = assigns(:issues).map(&:id).sort.map {|i| "ids%5B%5D=#{i}"}.join('&')
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Edit'
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a.icon-copy[href=?]', "/issues/bulk_edit?copy=1&#{ids}", :text => 'Copy'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete'
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bstatus_id%5D=5", :text => 'Closed'
assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bpriority_id%5D=8", :text => 'Immediate'
assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bassigned_to_id%5D=3", :text => 'Dave Lopper'
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 end
Jean-Baptiste Barth
Added ability to delete issues from different projects through contextual menu (#5332)...
r4122 def test_context_menu_multiple_issues_of_different_projects
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 @request.session[:user_id] = 2
Jean-Baptiste Barth
Added ability to delete issues from different projects through contextual menu (#5332)...
r4122 get :issues, :ids => [1, 2, 6]
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 assert_response :success
Toshi MARUYAMA
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest...
r12523 assert_template 'context_menus/issues'
Jean-Philippe Lang
Trying to fix random failures with postgresql due to different ids order in urls....
r4553 assert_not_nil assigns(:issues)
assert_equal [1, 2, 6], assigns(:issues).map(&:id).sort
Toshi MARUYAMA
remove trailing white-spaces from test/functional/context_menus_controller_test.rb....
r6700
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 ids = assigns(:issues).map(&:id).sort.map {|i| "ids%5B%5D=#{i}"}.join('&')
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Edit'
assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete'
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bstatus_id%5D=5", :text => 'Closed'
assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bpriority_id%5D=8", :text => 'Immediate'
assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bassigned_to_id%5D=2", :text => 'John Smith'
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 end
Toshi MARUYAMA
remove trailing white-spaces from test/functional/context_menus_controller_test.rb....
r6700
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 def test_context_menu_should_include_list_custom_fields
field = IssueCustomField.create!(:name => 'List', :field_format => 'list',
:possible_values => ['Foo', 'Bar'], :is_for_all => true, :tracker_ids => [1, 2, 3])
@request.session[:user_id] = 2
Jean-Philippe Lang
Prevent random failures due to params order....
r8729 get :issues, :ids => [1]
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'List'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', 3
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=Foo", :text => 'Foo'
assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__", :text => 'none'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
def test_context_menu_should_not_include_null_value_for_required_custom_fields
field = IssueCustomField.create!(:name => 'List', :is_required => true, :field_format => 'list',
:possible_values => ['Foo', 'Bar'], :is_for_all => true, :tracker_ids => [1, 2, 3])
@request.session[:user_id] = 2
get :issues, :ids => [1, 2]
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'List'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', 2
assert_select 'a', :text => 'none', :count => 0
end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
def test_context_menu_on_single_issue_should_select_current_custom_field_value
field = IssueCustomField.create!(:name => 'List', :field_format => 'list',
:possible_values => ['Foo', 'Bar'], :is_for_all => true, :tracker_ids => [1, 2, 3])
issue = Issue.find(1)
issue.custom_field_values = {field.id => 'Bar'}
issue.save!
@request.session[:user_id] = 2
get :issues, :ids => [1]
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'List'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', 3
assert_select 'a.icon-checked', :text => 'Bar'
end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
def test_context_menu_should_include_bool_custom_fields
field = IssueCustomField.create!(:name => 'Bool', :field_format => 'bool',
:is_for_all => true, :tracker_ids => [1, 2, 3])
@request.session[:user_id] = 2
Jean-Philippe Lang
Prevent random failures due to params order....
r8729 get :issues, :ids => [1]
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'Bool'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', 3
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=0", :text => 'No'
assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=1", :text => 'Yes'
assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__", :text => 'none'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
def test_context_menu_should_include_user_custom_fields
field = IssueCustomField.create!(:name => 'User', :field_format => 'user',
:is_for_all => true, :tracker_ids => [1, 2, 3])
@request.session[:user_id] = 2
Jean-Philippe Lang
Prevent random failures due to params order....
r8729 get :issues, :ids => [1]
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'User'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', Project.find(1).members.count + 1
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=2", :text => 'John Smith'
assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__", :text => 'none'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
def test_context_menu_should_include_version_custom_fields
field = IssueCustomField.create!(:name => 'Version', :field_format => 'version', :is_for_all => true, :tracker_ids => [1, 2, 3])
@request.session[:user_id] = 2
Jean-Philippe Lang
Prevent random failures due to params order....
r8729 get :issues, :ids => [1]
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => 'Version'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'ul' do
assert_select 'a', Project.find(1).shared_versions.count + 1
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=3", :text => '2.0'
assert_select 'a[href=?]', "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__", :text => 'none'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 end
end
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 end
Jean-Philippe Lang
Field set as read-only still available in the issues list context menu (#16755)....
r12849 def test_context_menu_should_show_enabled_custom_fields_for_the_role_only
enabled_cf = IssueCustomField.generate!(:field_format => 'bool', :is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [1,2])
disabled_cf = IssueCustomField.generate!(:field_format => 'bool', :is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [2])
issue = Issue.generate!(:project_id => 1, :tracker_id => 1)
@request.session[:user_id] = 2
get :issues, :ids => [issue.id]
assert_select "li.cf_#{enabled_cf.id}"
assert_select "li.cf_#{disabled_cf.id}", 0
end
Jean-Philippe Lang
Adds a <<me>> option for assignee in the context menu (#1102)....
r8569 def test_context_menu_by_assignable_user_should_include_assigned_to_me_link
@request.session[:user_id] = 2
get :issues, :ids => [1]
assert_response :success
Toshi MARUYAMA
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest...
r12523 assert_template 'context_menus/issues'
Jean-Philippe Lang
Adds a <<me>> option for assignee in the context menu (#1102)....
r8569
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bassigned_to_id%5D=2', :text => / me /
Jean-Philippe Lang
Adds a <<me>> option for assignee in the context menu (#1102)....
r8569 end
Jean-Philippe Lang
Show shared versions when editing issues from different projects with the context menu (#11345)....
r9778 def test_context_menu_should_propose_shared_versions_for_issues_from_different_projects
@request.session[:user_id] = 2
version = Version.create!(:name => 'Shared', :sharing => 'system', :project_id => 1)
get :issues, :ids => [1, 4]
assert_response :success
Toshi MARUYAMA
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest...
r12523 assert_template 'context_menus/issues'
Jean-Philippe Lang
Show shared versions when editing issues from different projects with the context menu (#11345)....
r9778
assert_include version, assigns(:versions)
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'a', :text => 'eCookbook - Shared'
Jean-Philippe Lang
Show shared versions when editing issues from different projects with the context menu (#11345)....
r9778 end
Jean-Philippe Lang
Use #find_issues as before filter for issues context menu....
r11731 def test_context_menu_with_issue_that_is_not_visible_should_fail
get :issues, :ids => [1, 4] # issue 4 is not visible
assert_response 302
Jean-Philippe Lang
Find visible issues only in ContextMenusController#issues....
r4466 end
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
Jean-Philippe Lang
Respond with 404 when params[:ids] is missing (#12898)....
r10996 def test_should_respond_with_404_without_ids
get :issues
assert_response 404
end
Jean-Philippe Lang
Fixed time entries context menu display according permissions (#9405)....
r7802 def test_time_entries_context_menu
@request.session[:user_id] = 2
get :time_entries, :ids => [1, 2]
assert_response :success
Toshi MARUYAMA
Rails4: use "assert_template 'context_menus/time_entries'" at ContextMenusControllerTest...
r12524 assert_template 'context_menus/time_entries'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
assert_select 'a:not(.disabled)', :text => 'Edit'
Jean-Philippe Lang
Fixed time entries context menu display according permissions (#9405)....
r7802 end
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836
Jean-Philippe Lang
Adds a few functional tests....
r13336 def test_context_menu_for_one_time_entry
@request.session[:user_id] = 2
get :time_entries, :ids => [1]
assert_response :success
assert_template 'context_menus/time_entries'
assert_select 'a:not(.disabled)', :text => 'Edit'
end
Jean-Philippe Lang
Add time entries custom fields to the context menu for quick bulk edit (#17484)....
r12981 def test_time_entries_context_menu_should_include_custom_fields
field = TimeEntryCustomField.generate!(:name => "Field", :field_format => "list", :possible_values => ["foo", "bar"])
@request.session[:user_id] = 2
get :time_entries, :ids => [1, 2]
assert_response :success
assert_select "li.cf_#{field.id}" do
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href="#"]', :text => "Field"
Jean-Philippe Lang
Add time entries custom fields to the context menu for quick bulk edit (#17484)....
r12981 assert_select 'ul' do
assert_select 'a', 3
Jean-Philippe Lang
Upgrade to Rails 4.2.0 (#14534)....
r13510 assert_select 'a[href=?]', "/time_entries/bulk_update?ids%5B%5D=1&ids%5B%5D=2&time_entry%5Bcustom_field_values%5D%5B#{field.id}%5D=foo", :text => 'foo'
assert_select 'a[href=?]', "/time_entries/bulk_update?ids%5B%5D=1&ids%5B%5D=2&time_entry%5Bcustom_field_values%5D%5B#{field.id}%5D=bar", :text => 'bar'
assert_select 'a[href=?]', "/time_entries/bulk_update?ids%5B%5D=1&ids%5B%5D=2&time_entry%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__", :text => 'none'
Jean-Philippe Lang
Add time entries custom fields to the context menu for quick bulk edit (#17484)....
r12981 end
end
end
Jean-Philippe Lang
Can't bulk edit own time entries with "Edit own time entries" (#18580)....
r13860 def test_time_entries_context_menu_with_edit_own_time_entries_permission
@request.session[:user_id] = 2
Role.find_by_name('Manager').remove_permission! :edit_time_entries
Role.find_by_name('Manager').add_permission! :edit_own_time_entries
ids = (0..1).map {TimeEntry.generate!(:user => User.find(2)).id}
get :time_entries, :ids => ids
assert_response :success
assert_template 'context_menus/time_entries'
assert_select 'a:not(.disabled)', :text => 'Edit'
end
Jean-Philippe Lang
Fixed time entries context menu display according permissions (#9405)....
r7802 def test_time_entries_context_menu_without_edit_permission
@request.session[:user_id] = 2
Role.find_by_name('Manager').remove_permission! :edit_time_entries
get :time_entries, :ids => [1, 2]
assert_response :success
Toshi MARUYAMA
Rails4: use "assert_template 'context_menus/time_entries'" at ContextMenusControllerTest...
r12524 assert_template 'context_menus/time_entries'
Jean-Philippe Lang
Use #assert_select instead of #assert_tag....
r10836 assert_select 'a.disabled', :text => 'Edit'
Jean-Philippe Lang
Fixed time entries context menu display according permissions (#9405)....
r7802 end
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 end