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

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