Commit 124ab63d authored by Eric Allam's avatar Eric Allam

Include declared_path in 'No podspec found..' error message for PathSource (ref #1825)

parent a3ec49e2
......@@ -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