Sha256: 0cb51c41e46ccfd05b02674481abd726a84fa5314eaa90dd4b7cc83e81c74fbb
Contents?: true
Size: 1.27 KB
Versions: 65
Compression:
Stored size: 1.27 KB
Contents
require "spec_helper" describe SC::Project, 'buildfile' do include SC::SpecHelpers it "should return a new, empty buildfile if no Buildfile can be found in the project" do project = SC::Project.new fixture_path('buildfiles', 'empty_project') puts project.buildfile.loaded_paths project.buildfile.loaded_paths.size.should eql(0) project.buildfile.tasks.size.should eql(0) end it "should load a buildfile if one is found in project_root" do project = SC::Project.new fixture_path('buildfiles', 'installed') project.buildfile.loaded_paths.size.should eql(1) project.buildfile.tasks.size.should eql(2) end it "should load all files matching SC.env.buildfile_names" do SC.env.buildfile_names = ['Buildfile', 'Buildfile2'] project = SC::Project.new fixture_path('buildfiles', 'installed') project.buildfile.loaded_paths.size.should eql(2) SC.env.delete :buildfile_names end it "should merge over top of a parent project buildfile if there is one" do installed = SC::Project.new fixture_path('buildfiles', 'installed') basic = SC::Project.new fixture_path('buildfiles', 'basic'), :parent => installed basic.buildfile.lookup(:installed_task).should_not be_nil basic.buildfile.lookup(:test_task1).should_not be_nil end end
Version data entries
65 entries across 65 versions & 1 rubygems