Sha256: 1486e11ffaa03a56d7cc9583087326effd41cc8a354d1827e4da1c3f9bf892b6
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
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' CodeClimate::TestReporter.start 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 # Reset configuration after each test run config.after do Fortnox::API::DEFAULT_CONFIGURATION.each do |key, value| Fortnox::API.config.send("#{ key }=", value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.5.2 | spec/spec_helper.rb |
fortnox-api-0.5.1 | spec/spec_helper.rb |
fortnox-api-0.5.0 | spec/spec_helper.rb |