Sha256: a4fe9ca6ef59a05b76df898fd19d196dde55f23079ae53598d48a330dc034d62
Contents?: true
Size: 579 Bytes
Versions: 10
Compression:
Stored size: 579 Bytes
Contents
describe Hyrax::ImportUrlFailureService do let!(:depositor) { create(:user) } let(:inbox) { depositor.mailbox.inbox } let(:file) do FileSet.create do |file| file.apply_depositor_metadata(depositor) end end before do allow(file.errors).to receive(:full_messages).and_return(['huge mistake']) end describe "#call" do before do described_class.new(file, depositor).call end it "sends failing mail" do expect(inbox.count).to eq(1) expect(inbox.first.last_message.subject).to eq('File Import Error') end end end
Version data entries
10 entries across 10 versions & 2 rubygems