Sha256: a207298a322b93889624092c98de66a62b6ed5de612af344185dd74e399701b1
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require 'simplecov' require 'coveralls' SimpleCov.formatters = [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter 'spec' end Coveralls::Output.silent = true require 'dotenv' require 'faker' require 'vcr' require 'webmock/rspec' require 'tesla_api' Dotenv.load VCR.configure do |c| c.cassette_library_dir = "spec/cassettes" c.hook_into :webmock c.default_cassette_options = {:record => :once} c.configure_rspec_metadata! c.define_cassette_placeholder("<TESLA_EMAIL>") { CGI::escape(ENV["TESLA_EMAIL"]) } c.define_cassette_placeholder("<TESLA_PASS>") { ENV["TESLA_PASS"] } c.define_cassette_placeholder("<TESLA_CLIENT_ID>") { ENV["TESLA_CLIENT_ID"] } c.define_cassette_placeholder("<TESLA_CLIENT_SECRET>") { ENV["TESLA_CLIENT_SECRET"] } end RSpec.configure do |config| 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 config.disable_monkey_patching! config.order = :random Kernel.srand config.seed end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tesla_api-1.1.0 | spec/spec_helper.rb |