summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-05 12:23:39 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-05 12:23:39 +0100
commitfc3f593b5357849891b00a453e9d778560c6049e (patch)
tree10e169564288bfed5731e839468b3790c293e7d0 /spec/node_spec.rb
parent0827f783531b318af55a1048ad69ee4c112e0873 (diff)
downloadzorglub-fc3f593b5357849891b00a453e9d778560c6049e.zip
zorglub-fc3f593b5357849891b00a453e9d778560c6049e.tar.gz
spec: add specs for static pages generation
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index f78eb64..0a9ee10 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -136,6 +136,21 @@ describe Zorglub do
Node0.partial(:other_view).should == 'partial_content'
end
#
+ it "static pages should be generated" do
+ r = Node0.my_call '/do_static'
+ r.body[0].should == 'VAL 1'
+ r.header['Content-type'].should == 'text/static'
+ r = Node0.my_call '/do_static'
+ r.body[0].should == 'VAL 1'
+ r.header['Content-type'].should == 'text/static'
+ r = Node0.my_call '/do_static'
+ r.body[0].should == 'VAL 1'
+ r.header['Content-type'].should == 'text/static'
+ r = Node0.my_call '/no_static'
+ r.body[0].should == 'VAL 4'
+ r.header['Content-type'].should == 'text/static'
+ end
+ #
it "redirect should work" do
r = Node0.my_call '/do_redirect'
r.status.should == 302