Sha256: 083910b32f2493ae68b8dccf41b328755a301cff6ff87318b8c73ee0d26e2c4c

Contents?: true

Size: 522 Bytes

Versions: 23

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'

module Sipity
  RSpec.describe Notification, type: :model, no_clean: true do
    subject { described_class.new }
    it 'will raise an ArgumentError if you provide an invalid #notification_type' do
      expect { subject.notification_type = '__incorrect_name__' }.to raise_error(ArgumentError)
    end

    describe '.valid_notification_types' do
      subject { described_class.valid_notification_types }
      it { is_expected.to eq([described_class::NOTIFICATION_TYPE_EMAIL]) }
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
hyrax-1.1.1 spec/models/sipity/notification_spec.rb
hyrax-1.1.0 spec/models/sipity/notification_spec.rb
hyrax-1.0.5 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.8 spec/models/sipity/notification_spec.rb
hyrax-1.0.4 spec/models/sipity/notification_spec.rb
hyrax-1.0.3 spec/models/sipity/notification_spec.rb
hyrax-1.0.2 spec/models/sipity/notification_spec.rb
hyrax-1.0.1 spec/models/sipity/notification_spec.rb
hyrax-1.0.0.rc2 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.7 spec/models/sipity/notification_spec.rb
curation_concerns-2.0.0 spec/models/sipity/notification_spec.rb
curation_concerns-2.0.0.rc2 spec/models/sipity/notification_spec.rb
hyrax-1.0.0.rc1 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.6 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.5 spec/models/sipity/notification_spec.rb
test_hyrax-0.0.1.alpha spec/models/sipity/notification_spec.rb
curation_concerns-1.7.4 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.3 spec/models/sipity/notification_spec.rb
curation_concerns-1.7.2 spec/models/sipity/notification_spec.rb
curation_concerns-2.0.0.rc1 spec/models/sipity/notification_spec.rb