diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 12:39:29 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 12:39:29 +0100 |
commit | 9b3214d3828570bd1f7357b0550eafdb5390a16d (patch) | |
tree | 817e52b7f7081c05a3c26238dffe8742ada1b635 /spec | |
parent | fc3f593b5357849891b00a453e9d778560c6049e (diff) | |
download | zorglub-9b3214d3828570bd1f7357b0550eafdb5390a16d.zip zorglub-9b3214d3828570bd1f7357b0550eafdb5390a16d.tar.gz |
Node: implement optional static page generation
Diffstat (limited to 'spec')
-rw-r--r-- | spec/node_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 0a9ee10..5b5d97d 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -2,10 +2,25 @@ # require 'spec_helper' # +def clean_static_path + static_base_path = Zorglub::Config.static_base_path + Dir.glob( File.join(static_base_path,'**','*') ).each do |f| File.unlink f if File.file? f end + Dir.glob( File.join(static_base_path,'*') ).each do |d| Dir.rmdir d end + Dir.rmdir static_base_path if File.directory? static_base_path +end +# describe Zorglub do # describe Zorglub::Node do # + before(:all) do + clean_static_path + end + # + after(:all) do + clean_static_path + end + # it "engine should return default Node's engine" do Node0.engine.should == Zorglub::Config.engine Node0.engine.should == Zorglub::Config[:engine] |