Sha256: 4aee99bb3a0d279f7643fe569f3ae64703a51f5bcc254f4c2aeebeebcc13cab0
Contents?: true
Size: 989 Bytes
Versions: 3
Compression:
Stored size: 989 Bytes
Contents
ENV['RUBY_ENV'] = 'test' require 'rspec/collection_matchers' require 'webmock/rspec' require 'pry' require "codeclimate-test-reporter" require 'support/matchers' require 'support/helpers' require 'support/vcr_setup' require 'dotenv' CodeClimate::TestReporter.start Dotenv.load('.env.test') RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.extend Helpers # Allow access to helpers in describe and context blocks config.include Helpers # Allow access to helpers in it and let blocks config.include Helpers::Repositories, integration: true config.include Matchers::Type, type: :type config.order = 'random' WebMock.disable_net_connect!( allow: 'codeclimate.com' ) config.before do module Test def self.remove_constants constants.each{ |const| remove_const(const) } self end end end config.after do Object.send(:remove_const, Test.remove_constants.name) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.4.0 | spec/spec_helper.rb |
fortnox-api-0.3.0 | spec/spec_helper.rb |
fortnox-api-0.2.0 | spec/spec_helper.rb |