summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-06 21:13:37 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-06 21:13:37 +0200
commitbfc6d9a6ceed3a2ee9a38a1afa4dffec972eca83 (patch)
tree235bce0f218c03265a2e26c92a4a8d07db03c8fd /spec/spec_helper.rb
parent8c041f820af424978f92f8ba0e68e64d6caf0c5b (diff)
downloadnorsk-urskog-registrations-bfc6d9a6ceed3a2ee9a38a1afa4dffec972eca83.tar.gz
norsk-urskog-registrations-bfc6d9a6ceed3a2ee9a38a1afa4dffec972eca83.tar.bz2
norsk-urskog-registrations-bfc6d9a6ceed3a2ee9a38a1afa4dffec972eca83.zip
Add submit form helper to specs.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ad8ead8..cd9f3f3 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,10 +2,13 @@ ENV['RACK_ENV'] = 'test'
require_relative '../registration'
require_relative 'support/band_factory'
+require_relative 'support/submit_form_helper'
require 'capybara/rspec'
RSpec.configure do |config|
config.include BandFactory
+ config.include SubmitFormHelper
+
config.before(:example) do
@doc_spy = spy("Prawn::Document")
allow(Prawn::Document).to receive('new') { @doc_spy }