Sha256: e81c7990ef43ae84ce9447ae28d3e5f8c976e142d6cfbe30a087fbc10f9193d6

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

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

describe "Kharites::Generate" do
  before do
    generate_kharites
    @tmp_dir = File.dirname(__FILE__) + '/sandbox/tmp'
    kharites = Kharites::Base.new(@tmp_dir)
    kharites.run('generate')
  end
  
  it "should set up project directory in given path" do
    %w(
    public/images
    public/javascripts
    public/stylesheets
    views/layout.haml
    views/index.haml
    views/application.sass
    ).each {|path| File.exists?(File.join(@tmp_dir, path)).should(be_true, "#{path} expected to exist in #{@tmp_dir}") }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
Kharites-tools-0.2.0 spec/setup_spec.rb
Kharites-tools-0.1.1 spec/setup_spec.rb
Kharites-tools-0.1.0 spec/setup_spec.rb