Skip to content

Commit

Permalink
Fixes #31 VCR::Errors due to mismatch in API_BASE_URL in test setup w…
Browse files Browse the repository at this point in the history
…hen run locally
  • Loading branch information
eikes committed Nov 16, 2021
1 parent ea3b92d commit 3fb1794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/ci_workflow.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ export IOKI_API_CLIENT_IDENTIFIER="foobar-identifier"
export IOKI_API_CLIENT_SECRET="foobar-client-secret"
export IOKI_API_CLIENT_VERSION="0.0.1"
export IOKI_API_TOKEN="foobar-api-token"

export IOKI_PLATFORM_API_BASE_URL="https://demo.io.ki/api/"
export IOKI_PASSENGER_API_BASE_URL="https://demo.io.ki/api/"
export IOKI_DRIVER_API_BASE_URL="https://demo.io.ki/api/"
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
end
end

ENV['IOKI_PLATFORM_API_BASE_URL'] ||= 'https://demo.io.ki/api/'
ENV['IOKI_PASSENGER_API_BASE_URL'] ||= 'https://demo.io.ki/api/'
ENV['IOKI_DRIVER_API_BASE_URL'] ||= 'https://demo.io.ki/api/'

VCR.configure do |config|
config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
config.hook_into :webmock
Expand Down

0 comments on commit 3fb1794

Please sign in to comment.