2011-08-04 17:21:22 -04:00
|
|
|
Shindo.tests('Fog::Rackspace::LoadBalancers', ['rackspace']) do
|
2011-07-21 10:41:40 -04:00
|
|
|
|
2011-08-16 12:56:44 -04:00
|
|
|
pending if Fog.mocking?
|
|
|
|
|
2011-08-04 17:21:22 -04:00
|
|
|
@service = Fog::Rackspace::LoadBalancers.new
|
2011-07-28 14:37:21 -04:00
|
|
|
|
2011-07-21 10:41:40 -04:00
|
|
|
tests('#algorithms').succeeds do
|
|
|
|
data = @service.algorithms
|
|
|
|
returns(true) { data.is_a? Array }
|
|
|
|
returns(true) { data.first.is_a? String }
|
|
|
|
end
|
2011-07-28 14:37:21 -04:00
|
|
|
|
|
|
|
tests('#protocols').succeeds do
|
|
|
|
data = @service.protocols
|
|
|
|
returns(true) { data.is_a? Array }
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('#usage').succeeds do
|
|
|
|
@service.usage
|
|
|
|
end
|
2011-07-21 10:41:40 -04:00
|
|
|
end
|