diff options
Diffstat (limited to 'spec/node_spec.rb')
-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] |