Sha256: c095a7e63d3c83a9eb1dd64737e3921986e44969efea2fa74685946f94f6a7f0
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
require 'bundler/setup' $:.push(File.expand_path("../../lib", __FILE__)) require 'rspec' require 'veritrans' require 'veritrans/cli' require 'veritrans/events' require 'rails' require 'webmock/rspec' require 'vcr' require 'capybara/rspec' require 'capybara/poltergeist' require 'active_support/testing/stream' Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, # phantomjs don't much like ssl of cloudfront.net phantomjs_options: ['--ignore-ssl-errors=yes', '--ssl-protocol=any'], # logger: STDOUT ) end Capybara.configure do |config| config.javascript_driver = :poltergeist config.default_driver = :poltergeist config.run_server = false end GEM_ROOT = File.expand_path("../..", __FILE__) ENV['RAILS_ENV'] = 'development' VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures' c.hook_into :webmock # or :fakeweb #c.debug_logger = STDOUT end RSpec.configure do |config| config.mock_with :rspec config.expect_with :rspec do |c| c.syntax = [:should, :expect] end config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.around(:each) do |example| if example.metadata[:vcr] === false WebMock.allow_net_connect! VCR.turned_off { example.run } WebMock.disable_net_connect! else example.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritrans-2.2.0 | spec/spec_helper.rb |