Sha256: 7b6c8583e7d710ed357d69a09917ddfbd8bb62fb8055c9facf003ad8efd4b588

Contents?: true

Size: 613 Bytes

Versions: 15

Compression:

Stored size: 613 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe "StaticMatic::Setup" do
  before do
    setup_staticmatic
    @tmp_dir = File.dirname(__FILE__) + '/sandbox/tmp'
    staticmatic = StaticMatic::Base.new(@tmp_dir)
    staticmatic.run('setup')
  end
  
  it "should set up project directory in given path" do
    %w(
    site/images
    site/javascripts
    site/stylesheets
    src/layouts/site.haml
    src/pages/index.haml
    src/stylesheets/screen.sass
    config/site.rb
    ).each {|path| File.exists?(File.join(@tmp_dir, path)).should(be_true, "#{path} expected to exist in #{@tmp_dir}") }
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
staticmatic2-2.0.2 spec/setup_spec.rb
staticmatic2-2.0.1 spec/setup_spec.rb
staticmatic2-2.0.0 spec/setup_spec.rb
staticmatic-0.11.1 spec/setup_spec.rb
staticmatic-0.11.0 spec/setup_spec.rb
staticmatic-0.11.0.alpha.10 spec/setup_spec.rb
staticmatic-0.11.0.alpha.9 spec/setup_spec.rb
staticmatic-0.11.0.alpha.8 spec/setup_spec.rb
staticmatic-0.11.0.alpha.7 spec/setup_spec.rb
staticmatic-0.11.0.alpha.6 spec/setup_spec.rb
staticmatic-0.11.0.alpha.5 spec/setup_spec.rb
staticmatic-0.11.0.alpha.4 spec/setup_spec.rb
staticmatic-0.11.0.alpha.3 spec/setup_spec.rb
staticmatic-0.11.0.alpha.1 spec/setup_spec.rb
staticmatic-0.11.0.alpha.0 spec/setup_spec.rb