mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Handle a corner case in the create_queue mock.
This commit is contained in:
parent
2894d3ca1d
commit
f3ed65ae82
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ module Fog
|
|||
|
||||
class Mock
|
||||
def create_queue(queue_name)
|
||||
raise MethodNotAllowed.new if queue_name.nil? || queue_name.empty?
|
||||
|
||||
existed = ! data[queue_name].nil?
|
||||
|
||||
unless existed
|
||||
|
|
Loading…
Add table
Reference in a new issue