Sha256: 491e6c327753f46e63db907aa1c2d2c788b7c68c17730359dd9e975ef564937a

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

require_relative "./helpers"

describe Spinebox::Generator do
  
  before(:each) do
    Dir.chdir(File.dirname(__FILE__))
    FileUtils.rm_rf("tmp")
    FileUtils.mkdir("tmp")
    Dir.chdir "tmp"
  end
  
  after(:each) do
    Dir.chdir ".."
    FileUtils.rm_rf("tmp")
  end
  
  it "should generate app with name" do
    File.directory?("box").should_not be_true
    
    generator = Spinebox::Generator.new "box"
    File.directory?(generator.root).should be_true
    Dir["#{generator.root}/**/*"].should have_at_least(5).files
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spinebox-0.0.5 spec/generator_spec.rb
spinebox-0.0.4 spec/generator_spec.rb
spinebox-0.0.3 spec/generator_spec.rb
spinebox-0.0.2 spec/generator_spec.rb
spinebox-0.0.1 spec/generator_spec.rb