Permalink
Browse files

more tests

  • Loading branch information...
1 parent b7da09d commit e9271139c5a0d7f93b7406a98c8d8019a374263d @binarylogic committed Aug 26, 2009
Showing with 13 additions and 1 deletion.
  1. +4 −0 spec/settings.yml
  2. +9 −1 spec/settingslogic_spec.rb
View
@@ -1,5 +1,9 @@
setting1:
setting1_child: saweet
+ deep:
+ another: my value
+ child:
+ value: 2
setting2: 5
setting3: <%= 5 * 5 %>
View
@@ -6,13 +6,21 @@
end
it "should access settings" do
- Settings.setting1.should == {"setting1_child" => "saweet"}
+ Settings.setting2.should == 5
end
it "should access nested settings" do
Settings.setting1.setting1_child.should == "saweet"
end
+ it "should access deep nested settings" do
+ Settings.setting1.deep.another.should == "my value"
+ end
+
+ it "should access extra deep nested settings" do
+ Settings.setting1.deep.child.value.should == 2
+ end
+
it "should enable erb" do
Settings.setting3.should == 25
end

0 comments on commit e927113

Please sign in to comment.