Sha256: e2aab8c63c91dc4ffd152207ec23898ec7a31c0b128065c89e40adb1b227e650
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')) describe Buildr::Html5::Compiler::Closure do it 'should identify itself from source directories' do write 'src/main/js/test.js', '"my awesome js"' define('foo').compile.compiler.should eql(:closure) end it 'should report the language as :javascript' do define('foo').compile.using(:closure).language.should eql(:javascript) end it 'should set the target directory to target' do define 'foo' do lambda { compile.using(:closure) }.should change { compile.target.to_s }.to(File.expand_path('target')) end end it 'should not override existing target directory' do define 'foo' do compile.into('classes') lambda { compile.using(:closure) }.should_not change { compile.target } end end it 'should not change existing list of sources' do define 'foo' do compile.from('sources') lambda { compile.using(:closure) }.should_not change { compile.sources } end end after do Buildr.options.debug = nil ENV.delete "debug" ENV.delete "DEBUG" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildr-html5-0.0.1.pre | spec/html5/compiler/closure_spec.rb |