Commit 7aca9755 authored by Tim Bodeit's avatar Tim Bodeit

[ProjectSpec] Improve existing file reference tests

Test that subgroups that reflect the directory structure are not created for
a file reference unless requested.
parent c6a0db36
......@@ -177,6 +177,16 @@ module Pod
ref.hierarchy_path.should == '/Pods/BananaLib/Dir/SubDir/nested_file.m'
end
it 'does not add subgroups for a file reference if not requested' do
ref = @project.add_file_reference(@nested_file, @group)
ref.hierarchy_path.should == '/Pods/BananaLib/nested_file.m'
end
it 'does not add subgroups for a file reference if requested not to' do
ref = @project.add_file_reference(@nested_file, @group, false)
ref.hierarchy_path.should == '/Pods/BananaLib/nested_file.m'
end
it "it doesn't duplicate file references for a single path" do
ref_1 = @project.add_file_reference(@file, @group)
ref_2 = @project.add_file_reference(@file, @group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment