1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/models/auto_scaling/instance_tests.rb

16 lines
380 B
Ruby
Raw Normal View History

require 'fog/aws/models/auto_scaling/instance'
Shindo.tests("Fog::AWS::AutoScaling::Instance", 'aws') do
@instance = Fog::AWS::AutoScaling::Instance.new
test('#healthy? = true') do
@instance.health_status = 'Healthy'
@instance.healthy? == true
end
test('#heatlhy? = false') do
@instance.health_status = 'Unhealthy'
@instance.healthy? == false
end
end