spec/spec_helper.rb in moneta-api-1.0.1 vs spec/spec_helper.rb in moneta-api-1.0.2
- old
+ new
@@ -1,5 +1,10 @@
+if ENV['CODECLIMATE_REPO_TOKEN']
+ require 'codeclimate-test-reporter'
+ CodeClimate::TestReporter.start
+end
+
require 'rspec'
require 'pry'
require 'rspec/its'
require 'moneta/api'
require 'yaml'
@@ -17,9 +22,10 @@
VCR.configure do |config|
config.cassette_library_dir = File.join(Dir.pwd, 'spec/vcr')
config.hook_into :fakeweb
config.filter_sensitive_data('<USERNAME>') { $username }
config.filter_sensitive_data('<PASSWORD>') { $password }
+ config.ignore_hosts 'codeclimate.com'
end
RSpec.configure do |config|
config.around(:each, :vcr) do |example|
name = example.metadata[:full_description].split(/\s+/, 2).join('/').downcase.gsub(/[^\w\/]+/, '_')