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:
parent
0c25928691
commit
5d03a2398c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue