Sha256: d668dc253d1909b8bcb797b4f9a7295de79d51ddb91bb0bca281a33ad151c3ed
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 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 '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.0.0 | spec/spec_helper.rb |