Sha256: a9e347c2995e63fdb3b8bd8ade871887246a5c5f85be49de730a8b9c393d05fa
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
if ENV["CODECLIMATE_REPO_TOKEN"] require "codeclimate-test-reporter" CodeClimate::TestReporter.start else require "simplecov" SimpleCov.start end begin require "pry" rescue LoadError end require "skala" require "vcr" require "yaml" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skala-0.3.0 | spec/spec_helper.rb |
skala-0.2.0 | spec/spec_helper.rb |