Commit 9f45146f authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Resolver] Use NoSuchDependencyError

parent 59a6713a
...@@ -18,7 +18,7 @@ GIT ...@@ -18,7 +18,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Resolver.git remote: https://github.com/CocoaPods/Resolver.git
revision: baebceabbbeea954ca3a398794c2008aa72b9d87 revision: c9532593ab99e25aa1aa61c1410e72ded3c2a2f1
branch: master branch: master
specs: specs:
resolver (0.0.1) resolver (0.0.1)
......
...@@ -213,8 +213,7 @@ module Pod ...@@ -213,8 +213,7 @@ module Pod
end end
cached_sets[name] = set cached_sets[name] = set
unless set unless set
raise Informative, 'Unable to find a specification for ' \ raise ::Resolver::NoSuchDependencyError.new(dependency)
"`#{dependency}`."
end end
end end
cached_sets[name] cached_sets[name]
......
...@@ -122,7 +122,7 @@ module Pod ...@@ -122,7 +122,7 @@ module Pod
@resolver.resolve @resolver.resolve
end.message end.message
message.should.match /Unable to find a specification/ message.should.match /Unable to find a specification/
message.should.match /`Windows` depended upon by BlocksKit/ message.should.match /`Windows` depended upon by `BlocksKit`/
end end
it 'does not raise if all dependencies are supported by the platform of the target definition' do it 'does not raise if all dependencies are supported by the platform of the target definition' do
......
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