test/hyperclient/resource_factory_test.rb in hyperclient-0.0.5 vs test/hyperclient/resource_factory_test.rb in hyperclient-0.0.6
- old
+ new
@@ -21,8 +21,12 @@
it 'returns the resource when is already present in the identity map' do
new_resource = ResourceFactory.resource('/path/to/resource')
new_resource.object_id.must_equal resource.object_id
end
+
+ it 'raises if the given url is nil' do
+ proc { ResourceFactory.resource(nil) }.must_raise MissingURLException
+ end
end
end
end