Sha256: 263b1f47b28f6c231fdad1d87004d910978f892c4446210749876a8f6e257e17

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe 'new' do
  
  it 'should generate mygame' do
    
    Entityjs::New.generate(['mygame']).should == 0
    Dir.pwd.should match /\/EntityJS$/i
    
  end
  
  it 'should generate mygame with template' do
    Entityjs::New.generate(['mygame', 'blank']).should == 0
    Dir.pwd.should match /\/EntityJS$/i
    
    File.exists?('mygame/config.yml').should == true
    File.exists?('mygame/readme.txt').should == true
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
entityjs-0.4.2 spec/lib/entityjs/commands/new_spec.rb
entityjs-0.4.1 spec/lib/entityjs/commands/new_spec.rb
entityjs-0.4.0 spec/lib/entityjs/commands/new_spec.rb
entityjs-0.3.2 spec/lib/entityjs/commands/new_spec.rb
entityjs-0.3.1 spec/lib/entityjs/commands/new_spec.rb
entityjs-0.3.0 spec/lib/entityjs/commands/new_spec.rb