Sha256: 6ca8674873983cc6109d9c986c823aa368b6ae271a49e0b74db1ee59760613fb
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' require 'smallcage' describe "SmallCage::Commands::Manifest" do before do @docroot = Pathname.new(File.dirname(__FILE__) + "/data/htdocs1") @opts = { :path => @docroot.to_s } @manifest_file = @docroot + "Manifest.html" end it "should create Manifest.html" do SmallCage::Runner.run(@opts.merge(:command => "manifest")) @manifest_file.file?.should be_true source = @manifest_file.read source.include?(<<'EOT').should be_true <ul class="files"> <li><a href="./a/">./a/</a></li> <li><a href="./a/b/">./a/b/</a></li> <li><a href="./a/b/c/">./a/b/c/</a></li> <li><a href="./a/b/c/index.html.smc">./a/b/c/index.html.smc</a></li> <li><a href="./_dir.smc">./_dir.smc</a></li> <li><a href="./_smc/">./_smc/</a></li> <li><a href="./_smc/helpers/">./_smc/helpers/</a></li> <li><a href="./_smc/templates/">./_smc/templates/</a></li> </ul> EOT end after do SmallCage::Runner.run(@opts.merge(:command => "clean")) @manifest_file.delete end end
Version data entries
6 entries across 6 versions & 2 rubygems