From f65594f4bc96c5ec442cf57c492254d38c6b3d09 Mon Sep 17 00:00:00 2001 From: Alexander Bach Date: Wed, 10 Jun 2015 16:17:51 +0200 Subject: [PATCH] Lower expectations --- .../work_packages/work_packages_by_project_resource_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/requests/api/v3/work_packages/work_packages_by_project_resource_spec.rb b/spec/requests/api/v3/work_packages/work_packages_by_project_resource_spec.rb index 0746b57f06..93938eb83c 100644 --- a/spec/requests/api/v3/work_packages/work_packages_by_project_resource_spec.rb +++ b/spec/requests/api/v3/work_packages/work_packages_by_project_resource_spec.rb @@ -33,7 +33,7 @@ describe API::V3::WorkPackages::WorkPackagesByProjectAPI, type: :request do include Rack::Test::Methods include API::V3::Utilities::PathHelper - let(:project) { FactoryGirl.create(:project_with_types, id: 5, is_public: false) } + let(:project) { FactoryGirl.create(:project_with_types, is_public: false) } describe '#post' do let(:status) { FactoryGirl.build(:status, is_default: true) } @@ -59,8 +59,7 @@ describe API::V3::WorkPackages::WorkPackagesByProjectAPI, type: :request do let(:permissions) { [:add_work_packages, :view_project, :view_work_packages] } it 'sends a mail by default' do - post path, parameters.to_json, 'CONTENT_TYPE' => 'application/json' - expect(ActionMailer::Base.deliveries.count).to eq(2) + expect(ActionMailer::Base.deliveries.count).to eq(1) end context 'without notifications' do