use with_settings at test_get_new_with_default_start_date_is_creation_date of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11819 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
af2053fe13
commit
a3766c5281
|
@ -1573,14 +1573,14 @@ class IssuesControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_get_new_with_default_start_date_is_creation_date
|
def test_get_new_with_default_start_date_is_creation_date
|
||||||
Setting.default_issue_start_date_to_creation_date = 1
|
with_settings :default_issue_start_date_to_creation_date => 1 do
|
||||||
|
@request.session[:user_id] = 2
|
||||||
@request.session[:user_id] = 2
|
get :new, :project_id => 1, :tracker_id => 1
|
||||||
get :new, :project_id => 1, :tracker_id => 1
|
assert_response :success
|
||||||
assert_response :success
|
assert_template 'new'
|
||||||
assert_template 'new'
|
assert_select 'input[name=?][value=?]', 'issue[start_date]',
|
||||||
|
Date.today.to_s
|
||||||
assert_select 'input[name=?][value=?]', 'issue[start_date]', Date.today.to_s
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_get_new_form_should_allow_attachment_upload
|
def test_get_new_form_should_allow_attachment_upload
|
||||||
|
|
Loading…
Reference in New Issue