Sha256: 6ded022ef0d7cd31df2898fcb8493031d0619bde275c9a746715390f623656d9
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
require 'spec_helper' describe Fozzie::Configuration do it "#host" do subject.host.should be_kind_of(String) end it "#port" do subject.port.should be_kind_of(Fixnum) end it "attempts to load configuration from yaml" do c = Fozzie::Configuration.new({:env => 'test', :config_path => 'spec/'}) c.host.should == '1.1.1.1' c.port.should == 9876 c.appname.should == 'fozzie' c.data_prefix.should == 'fozzie.test.' end it "defaults env" do subject.env.should == 'development' end it "creates a data prefix" do subject.data_prefix.should == 'development.' end it "creates a data prefix with appname when set" do subject.appname = 'astoria' subject.data_prefix.should == 'astoria.development.' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fozzie-0.0.2 | spec/lib/fozzie/configuration_spec.rb |
fozzie-0.0.1 | spec/lib/fozzie/configuration_spec.rb |