mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Adds a few functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13718 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -250,6 +250,15 @@ class ContextMenusControllerTest < ActionController::TestCase
|
||||
assert_select 'a:not(.disabled)', :text => 'Edit'
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
def test_time_entries_context_menu_should_include_custom_fields
|
||||
field = TimeEntryCustomField.generate!(:name => "Field", :field_format => "list", :possible_values => ["foo", "bar"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user