Sha256: 0f3f1f22a965ae98b7893913680f925ba3c50e36b967c6e92dad11b5a5d90ef4
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' describe Plurky do describe ".client" do it "returns a Plurky::Client" do Plurky.client.should be_a Plurky::Client end context "when the options don't change" do it "caches the client" do Plurky.client.should == Plurky.client end end context "when the options change" do it "creates a new client" do client1 = Plurky.client Plurky.configure do |config| config.consumer_key = 'CK' config.consumer_secret = 'CS' end client2 = Plurky.client client1.should_not == client2 end end end describe ".respond_to?" do it "delegates to Plurky::Client" do Plurky.should respond_to :get end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurky-0.1.1 | spec/plurky_spec.rb |
plurky-0.1.0 | spec/plurky_spec.rb |