1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Brightbox] Guards unimplemented mock tests

This guards the newer tests just added that rely on unimplemented mocks
This commit is contained in:
Paul Thornthwaite 2012-11-29 16:04:45 +00:00
parent 0c25928691
commit 5d03a2398c

View file

@ -46,6 +46,7 @@ Shindo.tests('Fog::Compute.new', ['brightbox']) do
service_options[:brightbox_access_token] = "bad-token"
tests("#request").returns(true, "returns a Hash") do
pending if Fog.mocking?
service = Fog::Compute.new(service_options)
response = service.get_authenticated_user
response.is_a?(Hash) # This is an outstanding issue, should be Excon::Response
@ -60,6 +61,7 @@ Shindo.tests('Fog::Compute.new', ['brightbox']) do
service_options[:brightbox_access_token] = "bad-token"
tests("#request").raises(Excon::Errors::Unauthorized) do
pending if Fog.mocking?
service = Fog::Compute.new(service_options)
service.get_authenticated_user
end