diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5c786bf..7191a30 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -38,12 +38,13 @@ puts "Did not load .env file" end -ActiveCortex.config.openai_access_token = ENV.fetch("OPENAI_ACCESS_TOKEN") +openai_access_token = ENV.fetch("OPENAI_ACCESS_TOKEN") { "openai-placeholder" } +ActiveCortex.config.openai_access_token = openai_access_token VCR.configure do |config| config.cassette_library_dir = "spec/vcr_cassettes" config.hook_into :webmock - config.filter_sensitive_data("") { ENV.fetch("OPENAI_ACCESS_TOKEN") } + config.filter_sensitive_data("") { openai_access_token } config.default_cassette_options = { match_requests_on: [:method, :uri, :body], drop_unused_requests: true