mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
467 B
Ruby
21 lines
467 B
Ruby
Shindo.tests('Fog::Rackspace::LoadBalancers', ['rackspace']) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
@service = Fog::Rackspace::LoadBalancers.new
|
|
|
|
tests('#algorithms').succeeds do
|
|
data = @service.algorithms
|
|
returns(true) { data.is_a? Array }
|
|
returns(true) { data.first.is_a? String }
|
|
end
|
|
|
|
tests('#protocols').succeeds do
|
|
data = @service.protocols
|
|
returns(true) { data.is_a? Array }
|
|
end
|
|
|
|
tests('#usage').succeeds do
|
|
@service.usage
|
|
end
|
|
end
|