Sha256: 228f78c1f0d1317d2030743641109efbcad5800db4d41f04ee862feda5767d91
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 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.app_host = "" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
veritrans-2.1.3 | spec/spec_helper.rb |
veritrans-2.1.2 | spec/spec_helper.rb |
veritrans-2.1.1 | spec/spec_helper.rb |
veritrans-2.1.0 | spec/spec_helper.rb |