Sha256: 47b6d33f83fc48a4af010c75891753ece3029f920af515a7914fc8805bcaaa80
Contents?: true
Size: 704 Bytes
Versions: 4
Compression:
Stored size: 704 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/spec_helper") describe "Settingslogic" do it "should be a hash" do Settings.send(:instance).should be_is_a(Hash) end it "should access settings" do Settings.setting1.should == {"setting1_child" => "saweet"} end it "should access nested settings" do Settings.setting1.setting1_child.should == "saweet" end it "should enable erb" do Settings.setting3.should == 25 end it "should raise an error for unfound settings" do lambda { Settings.undefined }.should raise_error(Settingslogic::UndefinedSetting) end it "should namespace settings" do Settings2.setting1_child.should == "saweet" end end
Version data entries
4 entries across 4 versions & 2 rubygems