Sha256: ef5ac930c3853910f1467e35dff14349a44e81cb772d1da7b92463553824f3ab
Contents?: true
Size: 945 Bytes
Versions: 6
Compression:
Stored size: 945 Bytes
Contents
require 'osc_ruby' require 'simplecov' require 'vcr' require 'json' VCR.configure do |c| c.cassette_library_dir = "spec/fixtures" c.hook_into :fakeweb c.allow_http_connections_when_no_cassette = true c.filter_sensitive_data('<OSC_ADMIN_USERNAME>') { ENV['OSC_ADMIN'] } c.filter_sensitive_data('<OSC_ADMIN_PASSWORD>') { ENV['OSC_PASSWORD'] } c.filter_sensitive_data('<TEST_INTERFACE>') { ENV['OSC_SITE'] } c.filter_sensitive_data('<BASIC_AUTH>') { ENV['OSC_BASIC_64'] } end RSpec.configure do |c| c.around(:each, :vcr) do |example| class_name = example.metadata[:described_class].to_s.gsub(/OSCRuby::/,'').downcase method_name = example.metadata[:example_group][:description_args][0].gsub(/#/,'') test_name = example.metadata[:description].gsub(/ /,'_').downcase name = [class_name,method_name,test_name].join('/')[0...95] VCR.use_cassette(name) { example.call } end end SimpleCov.start
Version data entries
6 entries across 6 versions & 1 rubygems