mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
438 B
Ruby
19 lines
438 B
Ruby
Shindo.tests('Fog::Rackspace::LoadBalancer', ['rackspace']) do
|
|
|
|
@service = Fog::Rackspace::LoadBalancer.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
|