mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
16 lines
380 B
Ruby
16 lines
380 B
Ruby
|
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
|