From 9af6141c9161c1b337ec1e945efe8960e55e845e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Oct 2012 07:56:45 +0000 Subject: [PATCH] Reverts r10623 for clarity, this test does not need the default language to be forced to "en". git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10625 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 29 +++++++++++------------ 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 3d5c252fe..eb8f9c287 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2872,21 +2872,20 @@ class IssuesControllerTest < ActionController::TestCase end def test_put_update_with_spent_time_and_failure_should_not_add_spent_time - with_settings :default_language => "en" do - @request.session[:user_id] = 2 - assert_no_difference('TimeEntry.count') do - put :update, - :id => 1, - :issue => { :subject => '' }, - :time_entry => { :hours => '2.5', :comments => 'should not be added', - :activity_id => TimeEntryActivity.first.id } - assert_response :success - end - assert_select 'input[name=?][value=?]', 'time_entry[hours]', '2.5' - assert_select 'input[name=?][value=?]', 'time_entry[comments]', 'should not be added' - assert_select 'select[name=?]', 'time_entry[activity_id]' do - assert_select 'option[value=?][selected=selected]', TimeEntryActivity.first.id - end + @request.session[:user_id] = 2 + + assert_no_difference('TimeEntry.count') do + put :update, + :id => 1, + :issue => { :subject => '' }, + :time_entry => { :hours => '2.5', :comments => 'should not be added', :activity_id => TimeEntryActivity.first.id } + assert_response :success + end + + assert_select 'input[name=?][value=?]', 'time_entry[hours]', '2.5' + assert_select 'input[name=?][value=?]', 'time_entry[comments]', 'should not be added' + assert_select 'select[name=?]', 'time_entry[activity_id]' do + assert_select 'option[value=?][selected=selected]', TimeEntryActivity.first.id end end