Merged r2250 and r2251 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2252 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -596,6 +596,24 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
# No email should be sent
|
||||
assert ActionMailer::Base.deliveries.empty?
|
||||
end
|
||||
|
||||
def test_post_edit_with_invalid_spent_time
|
||||
@request.session[:user_id] = 2
|
||||
notes = 'Note added by IssuesControllerTest#test_post_edit_with_invalid_spent_time'
|
||||
|
||||
assert_no_difference('Journal.count') do
|
||||
post :edit,
|
||||
:id => 1,
|
||||
:notes => notes,
|
||||
:time_entry => {"comments"=>"", "activity_id"=>"", "hours"=>"2z"}
|
||||
end
|
||||
assert_response :success
|
||||
assert_template 'edit'
|
||||
|
||||
assert_tag :textarea, :attributes => { :name => 'notes' },
|
||||
:content => notes
|
||||
assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" }
|
||||
end
|
||||
|
||||
def test_bulk_edit
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
Reference in New Issue
Block a user