set AWS_BUCKET just in one spec file

This commit is contained in:
bilal
2020-06-15 12:18:23 +02:00
parent 16d4d7511c
commit 3650d6022c
2 changed files with 4 additions and 1 deletions

View File

@@ -49,5 +49,4 @@ Rails.application.configure do
ENV["ENABLE_ANALYTICS"] = "true"
ENV["BRAYNIAC_AI_API_ENDPOINT"] ||= ""
ENV["AWS_BUCKET"] = ""
end

View File

@@ -5,6 +5,10 @@ describe MatchAppearanceReleasesJob do
let(:dummy_appearance_release) { create(:appearance_release_import, :with_headshot, :with_contract) }
let(:dummy_matching_request) { instance_double(MatchingRequest, id: 999) }
before :all do
ENV["AWS_BUCKET"] = ""
end
describe ".perform_now" do
it "returns if no attachment is sent" do
expect(MatchingRequest).not_to receive(:create)