spec/contextio/api_spec.rb in contextio-1.0.1 vs spec/contextio/api_spec.rb in contextio-1.1.0
- old
+ new
@@ -17,17 +17,21 @@
expect(subject.base_url).to eq('https://api.context.io')
end
end
describe ".new" do
- subject { ContextIO::API.new('test_key', 'test_secret') }
+ subject { ContextIO::API.new('test_key', 'test_secret', {a:'b'}) }
it "takes a key" do
expect(subject.key).to eq('test_key')
end
it "takes a secret" do
expect(subject.secret).to eq('test_secret')
+ end
+
+ it "takes an option hash" do
+ expect(subject.opts).to eq(a:'b')
end
end
describe "#path" do
context "without params" do