blob: cd9f3f3b3cea698e9a225ec4f51a5f28ab889961 (
plain) (
tree)
|
|
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 }
allow(@doc_spy).to receive('render_file')
end
end
Mail.defaults do
delivery_method :test # in practice you'd do this in spec_helper.rb
end
Capybara.app = RegistrationApp
|