From 54af9864afff0dee8bf879c01e133b3ff9207940 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 21 Mar 2014 15:48:04 +0600 Subject: [PATCH] [#345] remove unneeded code --- spec/controllers/projects/pull_requests_controller_spec.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/controllers/projects/pull_requests_controller_spec.rb b/spec/controllers/projects/pull_requests_controller_spec.rb index 82dd07657..eef8119da 100644 --- a/spec/controllers/projects/pull_requests_controller_spec.rb +++ b/spec/controllers/projects/pull_requests_controller_spec.rb @@ -311,22 +311,16 @@ describe Projects::PullRequestsController do it 'should send two email messages to project admins' do post :create, @create_params - @project.pull_requests.last.issue.send(:new_issue_notifications) - @project.pull_requests.last.issue.send(:send_assign_notifications) ActionMailer::Base.deliveries.count.should == 2 end it 'should send two email messages to admins and one to assignee' do post :create, @create_params.deep_merge(issue: {assignee_id: @project_reader.id}) - @project.pull_requests.last.issue.send(:new_issue_notifications) - @project.pull_requests.last.issue.send(:send_assign_notifications) ActionMailer::Base.deliveries.count.should == 3 end it 'should not duplicate email message' do post :create, @create_params.deep_merge(issue: {assignee_id: @project_admin.id}) - @project.pull_requests.last.issue.send(:new_issue_notifications) - @project.pull_requests.last.issue.send(:send_assign_notifications) ActionMailer::Base.deliveries.count.should == 2 # send only to admins ActionMailer::Base.deliveries.first.to != ActionMailer::Base.deliveries.last.to end