[#105] fix spec for update

This commit is contained in:
Alexander Machehin 2013-07-23 00:53:41 +06:00
parent 726913f987
commit 0d37f4e88e
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ describe Api::V1::PullRequestsController do
end
it 'should send email message to new assignee' do
http_login(@project_admin)
put :update, @update_params.deep_merge(:pull_request => {:assignee_id => @project_reader.id})
@project.pull_requests.last.issue.send(:send_assign_notifications)
ActionMailer::Base.deliveries.count.should == 1