spec/integration/saved_query_spec.rb in keen-0.9.5 vs spec/integration/saved_query_spec.rb in keen-0.9.6

- old
+ new

@@ -1,10 +1,11 @@ require File.expand_path("../spec_helper", __FILE__) describe "Saved Queries" do let(:project_id) { ENV["KEEN_PROJECT_ID"] } let(:master_key) { ENV["KEEN_MASTER_KEY"] } - let(:client) { Keen::Client.new(project_id: project_id, master_key: master_key) } + let(:read_key) { ENV["KEEN_READ_KEY"] } + let(:client) { Keen::Client.new(project_id: project_id, master_key: master_key, read_key: read_key) } describe "#all" do it "gets all saved_queries" do expect(client.saved_queries.all).to be_instance_of(Array) end