@@ -178,8 +178,9 class IssuesTest < ActionDispatch::IntegrationTest | |||||
178 | assert_select 'option[value=?][selected=selected]', tester.id.to_s, :text => tester.name |
|
178 | assert_select 'option[value=?][selected=selected]', tester.id.to_s, :text => tester.name | |
179 | end |
|
179 | end | |
180 |
|
180 | |||
181 | # Update issue |
|
|||
182 | new_tester = users[1] |
|
181 | new_tester = users[1] | |
|
182 | with_settings :default_language => 'en' do | |||
|
183 | # Update issue | |||
183 | assert_difference 'Journal.count' do |
|
184 | assert_difference 'Journal.count' do | |
184 | put "/issues/#{issue.id}", |
|
185 | put "/issues/#{issue.id}", | |
185 | :notes => 'Updating custom field', |
|
186 | :notes => 'Updating custom field', | |
@@ -188,11 +189,11 class IssuesTest < ActionDispatch::IntegrationTest | |||||
188 | } |
|
189 | } | |
189 | assert_redirected_to "/issues/#{issue.id}" |
|
190 | assert_redirected_to "/issues/#{issue.id}" | |
190 | end |
|
191 | end | |
191 |
|
||||
192 | # Issue view |
|
192 | # Issue view | |
193 | follow_redirect! |
|
193 | follow_redirect! | |
194 | assert_select 'ul.details li', :text => "Tester changed from #{tester} to #{new_tester}" |
|
194 | assert_select 'ul.details li', :text => "Tester changed from #{tester} to #{new_tester}" | |
195 | end |
|
195 | end | |
|
196 | end | |||
196 |
|
197 | |||
197 | def test_update_using_invalid_http_verbs |
|
198 | def test_update_using_invalid_http_verbs | |
198 | subject = 'Updated by an invalid http verb' |
|
199 | subject = 'Updated by an invalid http verb' |
General Comments 0
You need to be logged in to leave comments.
Login now