Sha256: f75895a0bf9506c5437d53a84213c05342e823df9113fad1922b3a07b0dfca08

Contents?: true

Size: 387 Bytes

Versions: 10

Compression:

Stored size: 387 Bytes

Contents

describe Hyrax::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

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.1.0 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.5 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.4 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.3 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.2 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.1 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.0.rc2 spec/services/hyrax/batch_create_success_service_spec.rb
hyrax-1.0.0.rc1 spec/services/hyrax/batch_create_success_service_spec.rb
test_hyrax-0.0.1.alpha spec/services/hyrax/batch_create_success_service_spec.rb