Sha256: d90387a2d19013734454240f59421a76bdd12f666ad6a474e1e7a5fc33ea717a
Contents?: true
Size: 990 Bytes
Versions: 12
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
12 entries across 12 versions & 1 rubygems