Sha256: 8816f4052f7a5afc0ca366bd07ab86e9df1c4da64ef355913639f5adc686cd00
Contents?: true
Size: 842 Bytes
Versions: 8
Compression:
Stored size: 842 Bytes
Contents
require 'spec_helper' describe 'Comp' do before(:all) do setup_mygame end after(:all) do teardown_mygame end before do @n = "asdf#{rand(9999999)}" end it 'should create init.js' do Entityjs::Comp.generate("#{@n}.js").should == 0 File.exists?("scripts/#{@n}.js").should == true end it 'should create init' do Entityjs::Comp.generate(@n).should == 0 File.exists?("scripts/#{@n}.js").should == true end it 'should create init.js in display' do Entityjs::Comp.generate("display/#{@n}").should == 0 File.exists?("scripts/display/#{@n}.js").should == true end it 'should create init.js and items' do Entityjs::Comp.generate("items/#{@n}.js").should == 0 File.exists?("scripts/items/#{@n}.js").should == true end end
Version data entries
8 entries across 8 versions & 1 rubygems