Sha256: e36a364a0f0c65e39594a32c3624cd85c00a8a8d95e2f87930acc86ed42a28fb

Contents?: true

Size: 855 Bytes

Versions: 10

Compression:

Stored size: 855 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'
require 'smallcage'

describe "smallcage" do

  docroot = Pathname.new(File.dirname(__FILE__) + "/data/htdocs1")

  it "show version" do
    # puts "------- version:" + SmallCage::VERSION::STRING
  end
  
  it "should update not docroot directory" do
    path = docroot + "a/b/"

    opts = { :command => "update", :path => path.to_s, :quiet => true }
    
    begin
      SmallCage::Runner.run(opts)
    
      out = docroot + "a/b/c/index.html"
      out.file?.should be_true
      out.delete
    
      pwd = Dir.pwd
      Dir.chdir(path)
    
      opts[:path] = "."
      SmallCage::Runner.run(opts)
    
      Dir.chdir(pwd)

      out.file?.should be_true
      out.delete
    ensure
      SmallCage::Runner.run({:command => "clean", :path => path.to_s, :quiet => true })
    end
      
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
bluemark-smallcage-0.1.3 spec/smallcage_spec.rb
bluemark-smallcage-0.1.4 spec/smallcage_spec.rb
bluemark-smallcage-0.1.5 spec/smallcage_spec.rb
smallcage-0.1.5 spec/smallcage_spec.rb
smallcage-0.1.4 spec/smallcage_spec.rb
smallcage-0.0.9 spec/smallcage_spec.rb
smallcage-0.1.2 spec/smallcage_spec.rb
smallcage-0.1.1 spec/smallcage_spec.rb
smallcage-0.1.0 spec/smallcage_spec.rb
smallcage-0.1.3 spec/smallcage_spec.rb