set AWS_BUCKET just in one spec file
This commit is contained in:
@@ -49,5 +49,4 @@ Rails.application.configure do
|
||||
|
||||
ENV["ENABLE_ANALYTICS"] = "true"
|
||||
ENV["BRAYNIAC_AI_API_ENDPOINT"] ||= ""
|
||||
ENV["AWS_BUCKET"] = ""
|
||||
end
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user