spec/groovehq/client/connection_spec.rb in groovehq-1.0.5 vs spec/groovehq/client/connection_spec.rb in groovehq-1.0.6
- old
+ new
@@ -104,8 +104,18 @@
it "returns relations for pagination" do
expect(subject.rels[:next]).to be_instance_of(GrooveHQ::Relation)
end
+ context "with request options" do
+ subject { client.get(resource_path, per_page: 20) }
+
+ it "retains options" do
+ stub_request(:get, "#{api_groovehq_url}#{resource_path}?per_page=20").to_return(body: response)
+ expect(subject.options).to eq({})
+ end
+
+ end
+
end
end