spec/spec_helper.rb in bluekai-0.0.1 vs spec/spec_helper.rb in bluekai-0.0.2
- old
+ new
@@ -1,8 +1,11 @@
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
+require 'bluekai'
+require 'support/signature_mock'
+
require 'vcr'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause this
# file to always be loaded, without a need to explicitly require it in any files.
@@ -90,18 +93,16 @@
# Kernel.srand config.seed
end
ENV['BLUEKAI_API_USER_KEY'] ||= 'bluekai-api-user-key'
ENV['BLUEKAI_API_PRIVATE_KEY'] ||= 'bluekai-private-key'
-ENV['BLUEKAI_DOMAIN'] ||= 'bluekai-domain.com'
ENV['BLUEKAI_PARTNER_ID'] ||= '2695'
VCR.configure do |c|
c.configure_rspec_metadata!
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
c.hook_into :webmock
c.filter_sensitive_data('bluekai-api-user-key') { ENV['BLUEKAI_API_USER_KEY'] }
- c.filter_sensitive_data('bluekai-domain.com') { ENV['BLUEKAI_DOMAIN'] }
c.filter_sensitive_data('bluekai-private-key') { ENV['BLUEKAI_API_PRIVATE_KEY'] }
c.filter_sensitive_data('bluekai-partner-id') { ENV['BLUEKAI_PARTNER_ID'] }
# allow codeclimate-test-reporter to call the mothership
c.ignore_hosts 'codeclimate.com'
end