spec/spec_helper.rb in reviewed-0.2.2 vs spec/spec_helper.rb in reviewed-0.4.0

- old
+ new

@@ -12,15 +12,21 @@ config.alias_example_to :pit, :pending => true config.run_all_when_everything_filtered = true end VCR.configure do |config| - config.default_cassette_options = { record: :new_episodes } + config.ignore_localhost = false + config.default_cassette_options = { :record => :new_episodes, :serialize_with => :syck } 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_URL = 'http://localhost:3000/api/v1' TEST_KEY = ENV['REVIEWED_API_KEY'] + +Reviewed::Client.configure do |client| + client.api_key = TEST_KEY + client.api_base_uri = TEST_URL +end