summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-09-09 17:37:13 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-09-09 17:37:13 +0200
commit5de07c194e85fa74e7d7f2be12e99cb9acad3ccc (patch)
treefc58dc46aba60b898afec89a1cb5b451da07d236 /spec/spec_helper.rb
parent032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d (diff)
downloadnorsk-urskog-registrations-5de07c194e85fa74e7d7f2be12e99cb9acad3ccc.tar.gz
norsk-urskog-registrations-5de07c194e85fa74e7d7f2be12e99cb9acad3ccc.tar.bz2
norsk-urskog-registrations-5de07c194e85fa74e7d7f2be12e99cb9acad3ccc.zip
Validate postcode properly.
Don't accept invalid postcodes, or postcodes containing invalid chars.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cd9f3f3..293bd8e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,11 +2,13 @@ ENV['RACK_ENV'] = 'test'
require_relative '../registration'
require_relative 'support/band_factory'
+require_relative 'support/contact_factory'
require_relative 'support/submit_form_helper'
require 'capybara/rspec'
RSpec.configure do |config|
config.include BandFactory
+ config.include ContactFactory
config.include SubmitFormHelper
config.before(:example) do