Commit e927113 1 parent b7da09d commit e927113 Copy full SHA for e927113
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
setting1 :
2
2
setting1_child : saweet
3
+ deep :
4
+ another : my value
5
+ child :
6
+ value : 2
3
7
4
8
setting2 : 5
5
9
setting3 : <%= 5 * 5 %>
Original file line number Diff line number Diff line change 6
6
end
7
7
8
8
it "should access settings" do
9
- Settings . setting1 . should == { "setting1_child" => "saweet" }
9
+ Settings . setting2 . should == 5
10
10
end
11
11
12
12
it "should access nested settings" do
13
13
Settings . setting1 . setting1_child . should == "saweet"
14
14
end
15
15
16
+ it "should access deep nested settings" do
17
+ Settings . setting1 . deep . another . should == "my value"
18
+ end
19
+
20
+ it "should access extra deep nested settings" do
21
+ Settings . setting1 . deep . child . value . should == 2
22
+ end
23
+
16
24
it "should enable erb" do
17
25
Settings . setting3 . should == 25
18
26
end
You can’t perform that action at this time.
0 commit comments