add notice when matching is completed
This commit is contained in:
@@ -10,6 +10,11 @@ describe MatchAppearanceReleasesJob do
|
||||
end
|
||||
|
||||
describe ".perform_now" do
|
||||
# before do
|
||||
# allow(ProjectsChannel).to receive(:appearance_matching_flash_message).with(be_kind_of(Project), I18n.t("appearance_releases.create.matching_completed"))
|
||||
# end
|
||||
|
||||
|
||||
it "returns if no attachment is sent" do
|
||||
expect(MatchingRequest).not_to receive(:create)
|
||||
attachments = []
|
||||
@@ -50,6 +55,8 @@ describe MatchAppearanceReleasesJob do
|
||||
|
||||
expect(AppearanceRelease.last.contract).not_to be_attached
|
||||
expect(AppearanceRelease.last.person_photo).to be_attached
|
||||
|
||||
# expect(ProjectsChannel).to receive(:appearance_matching_flash_message)
|
||||
end
|
||||
|
||||
it "creates a new incomplete appearance release for contracts which cannot be matched by BrayniacAI" do
|
||||
|
||||
Reference in New Issue
Block a user