spec/iex/client_spec.rb in iex-ruby-client-1.1.0 vs spec/iex/client_spec.rb in iex-ruby-client-1.1.1
- old
+ new
@@ -128,10 +128,10 @@
end
context 'without a token' do
let(:client) { described_class.new }
it 'results in an API key error', vcr: { cassette_name: 'client/access_denied' } do
expect do
- client.get '/stock/msft/quote'
+ client.get '/stock/msft/quote', token: client.publishable_token
end.to raise_error IEX::Errors::PermissionDeniedError, /The API key provided is not valid./
end
end
end
end