Sha256: 4c29247e6c78cd5c5990ae19e9e11bf288246d9f0b4d02a1b08be0008c12f910
Contents?: true
Size: 856 Bytes
Versions: 65
Compression:
Stored size: 856 Bytes
Contents
require "spec_helper" describe SC::Project, 'target_for' do include SC::SpecHelpers before do @project = fixture_project(:real_world) end it "should lookup absolute target names (/foo) from the top" do target = @project.target_for('/sproutcore') target.should_not be_nil target.target_name.to_s.should eql('/sproutcore') end it "should lookup relative target names from the top (like absolute)" do target = @project.target_for(:sproutcore) target.should_not be_nil target.target_name.to_s.should eql('/sproutcore') end it "should return nil if no matching target could be found" do target = @project.target_for(:does_not_exist) target.should be_nil end it "should NOT call prepare! on new targets" do target = @project.target_for(:contacts) target.prepared?.should be_false end end
Version data entries
65 entries across 65 versions & 1 rubygems