Sha256: e8945c45d63d25b4bbe9ae9e18b21e924663c1f68d231212ccbf4a68b27cbea4
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
# encoding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Jiralicious::Configuration do before :each do Jiralicious.reset end it "sets the options to their default value" do Jiralicious.username.should be_nil Jiralicious.password.should be_nil Jiralicious.uri.should be_nil Jiralicious.api_version.should == "latest" end it "allows setting of options in a block" do Jiralicious.configure do |config| config.username = "jstewart" config.password = "derp" config.uri = "http://example.com/foo/bar" config.api_version = "2.0aplha" end Jiralicious.username.should == "jstewart" Jiralicious.password.should == "derp" Jiralicious.uri = "http://example.com/foo/bar" Jiralicious.api_version = "2.0aplha" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jiralicious-0.0.6 | spec/configuration_spec.rb |