Sha256: eea9a555267ebfc856633e24672e5ffeebca74515f3860fcf9b810af5329a4d3

Contents?: true

Size: 387 Bytes

Versions: 16

Compression:

Stored size: 387 Bytes

Contents

describe Sufia::BatchCreateSuccessService do
  let(:depositor) { create(:user) }
  let(:inbox) { depositor.mailbox.inbox }

  describe "#call" do
    subject { described_class.new(depositor) }

    it "sends passing mail" do
      subject.call
      expect(inbox.count).to eq(1)
      inbox.each { |msg| expect(msg.last_message.subject).to eq('Passing batch create') }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.4.0 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.3.1 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.3.0 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.3.0.rc3 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.3.0.rc2 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.3.0.rc1 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.2.0 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.1.0 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.rc2 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.rc1 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.beta4 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.beta3 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.beta2 spec/services/sufia/batch_create_success_service_spec.rb
sufia-7.0.0.beta1 spec/services/sufia/batch_create_success_service_spec.rb