summaryrefslogtreecommitdiffstats
path: root/spec/email_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/email_spec.rb')
-rw-r--r--spec/email_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/email_spec.rb b/spec/email_spec.rb
index 5c4d310..e68d77f 100644
--- a/spec/email_spec.rb
+++ b/spec/email_spec.rb
@@ -12,6 +12,11 @@ RSpec.describe "sending email" do
let(:band_params) { create_band_params }
before :each do
+ app.set :accept_registrations, {
+ start: Date.today.iso8601,
+ stop: (Date.today + 30).iso8601
+ }
+
@mail_spy = spy("Mail")
allow(Mail).to receive('new') { @mail_spy }
allow(@mail_spy).to receive(:deliver!).and_raise(Net::SMTPFatalError.new("Some error message"))