Skip to content

Commit 9bb8cf4

Browse files
committed
Merge pull request #55 from lorenzoplanas/master
Test Link#expand raises ArgumentError with no args
2 parents 569585d + 8410467 commit 9bb8cf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/hyperclient/link_test.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ module Hyperclient
6060

6161
it 'raises if no uri variables are given' do
6262
link = Link.new({'href' => '/orders{?id}', 'templated' => true}, entry_point)
63-
64-
proc { link.resource.url }.must_raise MissingURITemplateVariablesException
63+
lambda { link.expand }.must_raise ArgumentError
6564
end
6665
end
6766

0 commit comments

Comments
 (0)