Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 28, 2013
1 parent 18fc2ca commit 06addfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xcodeproj/project/object/helpers/groupable_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def parents(object)
[]
else
parent = parent(object)
[*parents(parent), parent]
parents(parent).push(parent)
end
end

Expand Down Expand Up @@ -126,7 +126,7 @@ def source_tree_real_path(object)
:built_products => 'BUILT_PRODUCTS_DIR',
:developer_dir => 'DEVELOPER_DIR',
:sdk_root => 'SDKROOT',
}
}.freeze

# Sets the path of the given object according to the provided source
# tree key. The path is converted to relative according to the real
Expand Down
4 changes: 4 additions & 0 deletions spec/project/xcproj_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module ProjectSpecs

describe "::touch" do

before do
@sut.stubs(:available?).returns(true)
end

it "touches the project with the given path" do
@sut.expects(:execute).with("xcproj --project /project_path touch").returns(true, '')
@sut.touch('/project_path')
Expand Down

0 comments on commit 06addfe

Please sign in to comment.