Sha256: 0d0563b39280dfdc6ca16cf156511b47ff6a57e9c222d5ec821f5a1a02b1a637
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
require 'spec_helper' describe Namba do before(:each) do Namba.configure do |config| config.username = nil config.password = nil config.locale = nil end end it "should set configuration information" do Namba.configure do |config| config.username = "name" config.password = "secret" config.locale = :kz end n = Namba.new() n.username.should == "name" n.password.should == "secret" n.locale.should == :kz end it "should set defaults when it is not set in configuration block" do Namba.configure do |config| end n = Namba.new() n.username.should == "" n.password.should == "" n.locale.should == :kg end it "should not allow to set any locale except :kg or :kz" do expect { Namba.configure do |config| config.locale = :ru end }.should raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
namba-0.0.1 | spec/namba/namba_spec.rb |