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

[Specs] Robustness

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