1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/load_balancer_tests.rb
2011-07-28 14:37:21 -04:00

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