Sha256: 92b8ed61f168928955818834c4573b3e025b087e587dc3ea21177e19c7105571
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
shared_examples 'a file node' do describe '#parent' do context 'if the object is nested file node' do it 'returns the parent object' do file_nodes_gpaths do |gpath| expect(main_group.child(gpath).parent).to be_a(XcodeProject::PBXGroup) end end end end describe '#group_path' do it 'returns the abstract path from project main group' do expect(file_nodes_gpaths.map { |gpath| main_group.child(gpath).group_path }).to eql(file_nodes_gpaths.map { |gpath| Pathname.new(gpath) }) end end describe '#total_path' do it 'returns the absolute file path' do expect(file_nodes_gpaths.map { |gpath| main_group.child(gpath).total_path }).to eql(file_nodes_total_paths.map { |gpath| Pathname.new(gpath) }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xcodeproject_swift-0.3.14 | spec/support/shared_examples/file_node_shared_examples.rb |
xcodeproject_swift-0.3.13 | spec/support/shared_examples/file_node_shared_examples.rb |