Sha256: a8006cbd672ddd268e62599498742be3b04f7285ab934e7e918fb70d9a946787
Contents?: true
Size: 917 Bytes
Versions: 20
Compression:
Stored size: 917 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[.. .. .. spec_helper]) describe SC::Target, 'config' do include SC::SpecHelpers before do @project = fixture_project(:real_world) end it "should pickup global config setting when target does not override" do # required property is defined in real_world/Buildfile @target = @project.target_for :contacts @target.config.required.should eql(:sproutcore) end it "should pickup config setting overidden in target's Buildfile config" do # define in real_world/frameworks/sproutcore/Buildfile @target = @project.target_for :sproutcore @target.config.required.should eql(:desktop) end it "should pickup config from parent buildfiles" do # define in real_world/frameworks/sproutcore/Buildfile @target = @project.target_for 'sproutcore/foundation' @target.config.required.should eql(:costello) end end
Version data entries
20 entries across 20 versions & 2 rubygems