Sha256: 72fda16300613b709b3992e4dd05c54b0c24b13386bdd11f4dd4a6d7a3f8520b
Contents?: true
Size: 990 Bytes
Versions: 1
Compression:
Stored size: 990 Bytes
Contents
require "spec_helper" describe XCodeProject::PBXFileReference do let(:root) { prepare_example_project.read.send(:root) } let(:obj_gpath) { "group1a/file2c.m" } let(:obj) { root.project.main_group.file_ref(obj_gpath) } describe "#remove!" do it "removes the current file reference" do obj.remove! root.project.main_group.file_ref(obj_gpath).should be_nil end it "removes build files which has been bonded with the current file reference" do obj.remove! root.build_files(obj.uuid).should be_empty end end it_behaves_like "a file node" do let(:main_group) { root.project.main_group } let(:file_nodes_gpaths) {[ "group1a/dir2c/dir3a/dir4a/file5a-a.m", "group1a/dir2c/dir3a/dir4a/file5a-r.m", "group1a/file2c.m" ]} let(:file_nodes_total_paths) {[ "#{example_project_dir}/dir1a/dir2a/dir3a/dir4a/file5a-a.m", "#{example_project_dir}/dir1a/dir2a/dir3a/dir4a/file5a-r.m", "#{example_project_dir}/dir1c/file2c.m" ]} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xcodeproject-0.1.1 | lib/xcodeproject/spec/pbx_file_reference_spec.rb |