spec/contextio_spec.rb in contextio-1.0.1 vs spec/contextio_spec.rb in contextio-1.1.0

- old
+ new

@@ -12,9 +12,14 @@ it "passes credentials to its API handle" do api = ContextIO.new('1234', '0987').api expect(api.key).to eq('1234') expect(api.secret).to eq('0987') end + + it "passes opts to its API handle" do + api = ContextIO.new('1234', '0987', {a:'b'}).api + expect(api.opts).to eq(a:'b') + end end describe "#oauth_providers" do it "returns a new OAuthProviderCollection" do expect(subject.oauth_providers).to be_a(ContextIO::OAuthProviderCollection)