From bd8e9e421d0e0c90602dbf1003128120a3fc9183 Mon Sep 17 00:00:00 2001 From: Bilal Date: Mon, 27 Jul 2020 15:25:38 +0200 Subject: [PATCH] fix specs --- spec/controllers/api/sync_controller_spec.rb | 2 +- spec/features/user_manages_contract_templates_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/sync_controller_spec.rb b/spec/controllers/api/sync_controller_spec.rb index f34878a..c070b6e 100644 --- a/spec/controllers/api/sync_controller_spec.rb +++ b/spec/controllers/api/sync_controller_spec.rb @@ -94,7 +94,7 @@ RSpec.describe Api::SyncController, type: :controller do expect(appearance_releases.first).to include('guardian_photo') expect(talent_releases.first).to include('guardian_photo') expect(location_releases.first).not_to include('guardian_photo') - expect(material_releases.first).not_to include('guardian_photo') + expect(material_releases.first).to include('guardian_photo') end it 'guardian photo has same format as other photos' do diff --git a/spec/features/user_manages_contract_templates_spec.rb b/spec/features/user_manages_contract_templates_spec.rb index 48ba336..340663f 100644 --- a/spec/features/user_manages_contract_templates_spec.rb +++ b/spec/features/user_manages_contract_templates_spec.rb @@ -178,7 +178,7 @@ RSpec.feature 'User manages contract templates', type: :feature do expect(content_disposition).to include('inline') expect(pdf_body).to have_content('PREVIEW ONLY') expect(pdf_body).to have_content('Material Release') - expect(pdf_body).not_to have_content('Guardian') + expect(pdf_body).to have_content('Guardian') end context 'preventing creation of release template with wrong fee value' do