[#105] fix spec for update
This commit is contained in:
parent
726913f987
commit
0d37f4e88e
|
@ -302,6 +302,7 @@ describe Api::V1::PullRequestsController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should send email message to new assignee' do
|
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})
|
put :update, @update_params.deep_merge(:pull_request => {:assignee_id => @project_reader.id})
|
||||||
@project.pull_requests.last.issue.send(:send_assign_notifications)
|
@project.pull_requests.last.issue.send(:send_assign_notifications)
|
||||||
ActionMailer::Base.deliveries.count.should == 1
|
ActionMailer::Base.deliveries.count.should == 1
|
||||||
|
|
Loading…
Reference in New Issue