summaryrefslogtreecommitdiffstats
path: root/spec/email_spec.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-08-16 22:19:39 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-08-16 22:21:49 +0200
commit9594f5be7daa673b88654e0f47db07d1c1454765 (patch)
tree29785fb57273a5c98c75e592e0078c751a376382 /spec/email_spec.rb
parent62326cb57470475fd10e83e28d56a92e6cbc07bf (diff)
downloadnorsk-urskog-registrations-9594f5be7daa673b88654e0f47db07d1c1454765.tar.gz
norsk-urskog-registrations-9594f5be7daa673b88654e0f47db07d1c1454765.tar.bz2
norsk-urskog-registrations-9594f5be7daa673b88654e0f47db07d1c1454765.zip
Move registration open check to before filter.
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"))