spec/spec_helper.rb in reviewed-0.1.4 vs spec/spec_helper.rb in reviewed-0.1.21

- old
+ new

@@ -1,26 +1,25 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) -require 'vcr' require 'reviewed' +require 'vcr' Dir['spec/support/*'].each { |f| require f } RSpec.configure do |config| config.filter_run :focused => true config.alias_example_to :fit, :focused => true config.alias_example_to :pit, :pending => true config.run_all_when_everything_filtered = true + + config.extend VCR::RSpec::Macros end VCR.configure do |config| config.default_cassette_options = { record: :new_episodes } config.cassette_library_dir = 'spec/fixtures/vcr' config.hook_into :webmock - config.configure_rspec_metadata! end - -TEST_URL = 'https://the-guide-staging.herokuapp.com/api/v1' -TEST_KEY = ENV['REVIEWED_API_KEY'] - +TEST_URL = 'https://localhost:3000/api/v1' +TEST_KEY = '1234567890'