Sha256: 0429501ef8b0072c7a3468e834c3e42e48f24bc85cdbf584883e4ebf5822eb3b

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 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 namespace settings" do
    Settings2.setting1_child.should == "saweet"
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
binarylogic-settingslogic-2.0.2 spec/settingslogic_spec.rb
settingslogic-2.0.2 spec/settingslogic_spec.rb