mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Separated new/edit views for the timelog controller.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8628 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -40,7 +40,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
@request.session[:user_id] = 3
|
||||
get :new, :project_id => 1
|
||||
assert_response :success
|
||||
assert_template 'edit'
|
||||
assert_template 'new'
|
||||
# Default activity selected
|
||||
assert_tag :tag => 'option', :attributes => { :selected => 'selected' },
|
||||
:content => 'Development'
|
||||
@@ -50,7 +50,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
@request.session[:user_id] = 3
|
||||
get :new, :project_id => 1
|
||||
assert_response :success
|
||||
assert_template 'edit'
|
||||
assert_template 'new'
|
||||
assert_no_tag :tag => 'option', :content => 'Inactive Activity'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user