Sha256: dafc0fa67e997f567f6069171f0982092adf37b44e6158662880787ad005a4bf
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
if ENV["TRAVIS"] require "codeclimate-test-reporter" CodeClimate::TestReporter.start else require "simplecov" SimpleCov.start end require "celsius/primo" require "vcr" require "yaml" begin require "pry" rescue LoadError end # disable HTTPI loggin (noise) HTTPI.log = false RSpec.configure do |config| # begin --- rspec 3.1 generator config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end # end --- rspec 3.1 generator end VCR.configure do |c| c.allow_http_connections_when_no_cassette = true c.cassette_library_dir = "spec/cassettes" c.default_cassette_options = { match_requests_on: [:method, :uri, :query, :body], decode_compressed_response: true } c.hook_into :webmock # https://groups.google.com/forum/#!topic/vcr-ruby/2sKrJa86ktU c.before_record do |interaction| if interaction.response.body.encoding.name == "ASCII-8BIT" interaction.response.body.force_encoding("UTF-8") end end # https://relishapp.com/vcr/vcr/v/2-9-3/docs/test-frameworks/usage-with-rspec-metadata c.configure_rspec_metadata! end def read_asset(path_to_file) File.read(File.expand_path(File.join(File.dirname(__FILE__), "assets", path_to_file))) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
celsius-primo-0.1.2 | spec/spec_helper.rb |
celsius-primo-0.1.1 | spec/spec_helper.rb |
celsius-primo-0.1.0 | spec/spec_helper.rb |