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