Commit a88e48f7 authored by Orta's avatar Orta

Merge pull request #1832 from ericallam/issue-1825

Include declared_path in 'No podspec found..' error message for PathSource
parents a3ec49e2 124ab63d
......@@ -378,7 +378,7 @@ module Pod
pathname = Pathname.new(absolute_path)
unless pathname.exist?
raise Informative, "No podspec found for `#{name}` in `#{params[:local]}`"
raise Informative, "No podspec found for `#{name}` in `#{declared_path}`"
end
pathname
end
......
......@@ -295,7 +295,7 @@ module Pod
it "raises if the podspec cannot be found" do
@external_source.stubs(:params).returns(:path => temporary_directory)
e = lambda { @external_source.send(:podspec_path) }.should.raise Informative
e.message.should.match /No podspec found/
e.message.should.match /No podspec found for `Reachability` in `#{temporary_directory}`/
end
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