Sha256: 4ad9938bf6474fe69075f841fb5dc35c9faacda4905ddb428dcbb8c3b7a01e4b
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require "simplecov" SimpleCov.start do add_filter "/test/" end require 'minitest/autorun' require 'webmock/minitest' WebMock.disable_net_connect! allow_localhost: true, allow: ['codeclimate.com', 'chromedriver.storage.googleapis.com', 'googlechromelabs.github.io', 'storage.googleapis.com'] # Chrome Setup require 'selenium-webdriver' require 'capybara' require 'webdrivers' Capybara.register_driver :selenium do |app| Capybara::Selenium::Driver.new(app, :browser => :chrome) end # Configure Rails Environment ENV["RAILS_ENV"] = "test" ENV['STRIPE_SECRET_KEY'] = 'XYZ' require File.expand_path("dummy/config/environment.rb", __dir__) require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{__dir__}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.method_defined?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__) end Stripe::Engine.testing = true require 'mocha/minitest' require 'irb'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-rails-2.5.0 | test/spec_helper.rb |