Sha256: 7b00357a00e150f429e7d1a4c0271584f08d6f1afeaf1f639cf1b20ffceda9d1

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

require 'spec_helper'
require 'generators/genesis/genesis_generator'

describe GenesisGenerator do
  before :each do
    @destination = File.join 'tmp', 'test_app'
    @source = GenesisGenerator.source_root
    GenesisGenerator.start '', :destination_root => @destination
  end
  
  after :each do
    FileUtils.rm_rf @destination
  end
  
  {}.each do |file, path|   
    it "should copy '#{file}' to '#{path}'" do
      File.exists?( File.join( @destination, path ) ).should be_true
    end
    
    # it "should agree that the contents of '#{file}' are identical to '#{path}'" do
    #   File.read( File.join( @source, file ) ).should eql File.read( File.join( @destination, path ) )
    # end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genesis-1.2.1 spec/generators/genesis_generator_spec.rb
genesis-1.2.0 spec/generators/genesis_generator_spec.rb
genesis-1.1.0 spec/generators/genesis_generator_spec.rb
genesis-1.0.0 spec/generators/genesis_generator_spec.rb