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/cloud_watch/alarm_history_tests.rb
2015-01-02 09:42:20 -08:00

22 lines
530 B
Ruby

Shindo.tests("AWS::CloudWatch | alarm_histories", ['aws', 'cloudwatch']) do
pending if Fog.mocking?
tests('success') do
tests("#all").succeeds do
Fog::AWS[:cloud_watch].alarm_histories.all
end
new_attributes = {
:alarm_name => 'tmp-alarm',
:end_date => '',
:history_item_type => 'StateUpdate',
:max_records => 1,
:start_date => ''
}
tests('#new').returns(new_attributes) do
Fog::AWS[:cloud_watch].alarm_histories.new(new_attributes).attributes
end
end
end