spec/spec_helper.rb in better-mundipagg-0.0.1 vs spec/spec_helper.rb in better-mundipagg-0.1.0
- old
+ new
@@ -1,9 +1,20 @@
+require "simplecov"
+SimpleCov.start do
+ add_filter "spec"
+ add_group "lib", "lib"
+end
+
require "mundipagg"
-require 'simplecov'
-SimpleCov.start
+require "vcr"
+VCR.configure do |config|
+ config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
+ config.hook_into :webmock
+ config.configure_rspec_metadata!
+end
+
I18n.enforce_available_locales = true
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
@@ -19,10 +30,10 @@
config.disable_monkey_patching!
config.warnings = true
if config.files_to_run.one?
- config.default_formatter = 'doc'
+ config.default_formatter = "doc"
end
config.order = :random
end