fix pull requests api specs

This commit is contained in:
Alexander Machehin 2015-05-11 13:54:06 +05:00
parent 0f004ea91f
commit 8e7613b6a7
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ describe Api::V1::PullRequestsController, type: :controller do
it 'should not duplicate email message' do it 'should not duplicate email message' do
post :create, @create_params.deep_merge(pull_request: {assignee_id: @project_admin.id}) post :create, @create_params.deep_merge(pull_request: {assignee_id: @project_admin.id})
expect(ActionMailer::Base.deliveries.count).to eq 2 # send to all project members expect(ActionMailer::Base.deliveries.count).to eq 3 # send to all project members
expect(ActionMailer::Base.deliveries.map(&:to).uniq).to match_array(ActionMailer::Base.deliveries.map(&:to)) expect(ActionMailer::Base.deliveries.map(&:to).uniq).to match_array(ActionMailer::Base.deliveries.map(&:to))
end end
end end