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

Version Path
ns-yapi-0.5.0 spec/nsyapi_spec.rb
ns-yapi-0.4.4 spec/nsyapi_spec.rb
ns-yapi-0.4.3 spec/nsyapi_spec.rb
ns-yapi-0.4.2 spec/nsyapi_spec.rb
ns-yapi-0.4.1 spec/nsyapi_spec.rb
ns-yapi-0.4.0 spec/nsyapi_spec.rb
ns-yapi-0.3.0 spec/nsyapi_spec.rb
ns-yapi-0.2.1 spec/nsyapi_spec.rb
ns-yapi-0.2.0 spec/nsyapi_spec.rb
ns-yapi-0.1.2 spec/nsyapi_spec.rb
ns-yapi-0.1.1 spec/nsyapi_spec.rb