Commit 3cdf7fcc authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Robustness

parent 76a05b12
......@@ -7,7 +7,6 @@ module Pod
before do
@test_source = Source.new(fixture('spec-repos/test_repo'))
SourcesManager.stubs(:search_index_path).returns(temporary_directory + 'search_index.yaml')
Source::Aggregate.any_instance.stubs(:all).returns([@test_source])
end
......
......@@ -26,6 +26,9 @@ module Bacon
SpecHelper.temporary_directory.rmtree if SpecHelper.temporary_directory.exist?
SpecHelper.temporary_directory.mkpath
# TODO
::Pod::SourcesManager.stubs(:search_index_path).returns(temporary_directory + 'search_index.yaml')
old_run_requirement.bind(self).call(description, spec)
end
end
......
......@@ -125,9 +125,9 @@ module Pod
describe "Private Helpers" do
it "uses the path of the workspace defined in the podfile" do
path = Pathname.new("a_path")
@podfile.workspace(path.to_s)
@integrator.send(:workspace_path).should == path.sub_ext(".xcworkspace")
path = "a_path"
@podfile.workspace(path)
@integrator.send(:workspace_path).should == Pathname.new(path + ".xcworkspace")
end
it "names the workspace after the user project if needed" do
......
......@@ -5,7 +5,6 @@ module Pod
before do
@test_source = Source.new(fixture('spec-repos/test_repo'))
SourcesManager.stubs(:search_index_path).returns(temporary_directory + 'search_index.yaml')
end
#-------------------------------------------------------------------------#
......
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