mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[AWS|AutoScaling] Fix delete_auto_scaling_group.rb mock not raising the same error as real code
This commit is contained in:
parent
95965df442
commit
f0c02b7b3c
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ module Fog
|
|||
|
||||
def delete_auto_scaling_group(auto_scaling_group_name)
|
||||
unless self.data[:auto_scaling_groups].delete(auto_scaling_group_name)
|
||||
raise Fog::AWS::AutoScaling::NotFound, "The auto scaling group '#{auto_scaling_group_name}' does not exist."
|
||||
raise Fog::AWS::AutoScaling::ValidationError, "The auto scaling group '#{auto_scaling_group_name}' does not exist."
|
||||
end
|
||||
|
||||
response = Excon::Response.new
|
||||
|
|
|
@ -76,7 +76,7 @@ Shindo.tests('AWS::AutoScaling | auto_scaling_tests', ['aws', 'auto_scaling']) d
|
|||
Fog::AWS[:auto_scaling].delete_auto_scaling_group(@asg_name).body
|
||||
end
|
||||
|
||||
tests("#delete_auto_scaling_group that does not exists").raises(Fog::AWS::AutoScaling::NotFound) do
|
||||
tests("#delete_auto_scaling_group that does not exists").raises(Fog::AWS::AutoScaling::ValidationError) do
|
||||
Fog::AWS[:auto_scaling].delete_auto_scaling_group("group that does not exist")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue