Skip to content

Commit

Permalink
reset config
Browse files Browse the repository at this point in the history
  • Loading branch information
ScotterC committed Aug 8, 2024
1 parent 9d3e115 commit 2a44450
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/pinecone_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
context "without an api key" do
let(:api_key) { nil }

before do
it "raises an error" do
expect {
Pinecone::Client.new.list_indexes
}.to raise_error(Pinecone::ConfigurationError)

# reset the configuration
Pinecone.configure do |config|
config.api_key = nil
config.environment = nil
config.api_key = "foo"
end
end

it "raises an error" do
expect { Pinecone::Client.new.list_indexes }.to raise_error(Pinecone::ConfigurationError)
end
end
end
end

0 comments on commit 2a44450

Please sign in to comment.