public
Description: The invisible framework
Homepage: http://macournoyer.com/
Clone URL: git://github.com/macournoyer/invisible.git
Split layout specs in another file
macournoyer (author)
Mon Jul 21 09:46:16 -0700 2008
commit  5b309cca6c383ba59b7562e907542e247d1dac24
tree    d0e6356086f4d2a16e3ca239cc92ceb98c0abba9
parent  1a89e6418f901a78abb060c0444dc70f829b38cc
...
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
...
33
34
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
0
@@ -33,53 +33,3 @@ describe "render" do
0
     @app.mock.get("/request").body.should == "Rack::Request"
0
   end
0
 end
0
-
0
-describe "render with layout" do
0
- before do
0
- @app = Invisible.new do
0
- layout do
0
- text "default>"
0
- text content
0
- end
0
-
0
- get "/text" do
0
- render "text"
0
- end
0
-
0
- get "/markaby" do
0
- render do
0
- text "markaby"
0
- end
0
- end
0
-
0
- get "/none" do
0
- render "none", :layout => :none
0
- end
0
-
0
- layout :named do
0
- text "named>"
0
- text content
0
- end
0
-
0
- get "/named" do
0
- render "named", :layout => :named
0
- end
0
- end
0
- end
0
-
0
- it "should render text inside default layout" do
0
- @app.mock.get("/text").body.should == "default>text"
0
- end
0
-
0
- it "should render markaby inside default layout" do
0
- @app.mock.get("/markaby").body.should == "default>markaby"
0
- end
0
-
0
- it "should render inside no layout" do
0
- @app.mock.get("/none").body.should == "none"
0
- end
0
-
0
- it "should render inside named layout" do
0
- @app.mock.get("/named").body.should == "named>named"
0
- end
0
-end
0
\ No newline at end of file

Comments

    No one has commented yet.