Sha256: 986363c2f528ac7ffa201b71ed840e02e8f214f3b93c7d9e5ad4701286dbbad6
Contents?: true
Size: 676 Bytes
Versions: 11
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe NSYapi do context "Configuration" do it "should be configurable with a block" do NSYapi::configure do |config| config.username = "some-username" config.password = "some-password" end NSYapi::configuration.username.should == "some-username" NSYapi::configuration.password.should == "some-password" end end context "Singleton" do it "should create a singleton" do NSYapi::configure do |config| config.username = "some-username" config.password = "some-password" end client = NSYapi::client client.should == NSYapi::client end end end
Version data entries
11 entries across 11 versions & 1 rubygems