From 8e7613b6a756ed3512ea75f071a3cd15c79ac062 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 11 May 2015 13:54:06 +0500 Subject: [PATCH] fix pull requests api specs --- spec/controllers/api/v1/pull_requests_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/v1/pull_requests_controller_spec.rb b/spec/controllers/api/v1/pull_requests_controller_spec.rb index 773193fbb..46df0d5f7 100644 --- a/spec/controllers/api/v1/pull_requests_controller_spec.rb +++ b/spec/controllers/api/v1/pull_requests_controller_spec.rb @@ -312,7 +312,7 @@ describe Api::V1::PullRequestsController, type: :controller do it 'should not duplicate email message' do 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)) end end