spec/xfrtuc_spec.rb in xfrtuc-0.0.6 vs spec/xfrtuc_spec.rb in xfrtuc-0.0.7
- old
+ new
@@ -302,10 +302,10 @@
def schedules_endpoint(env)
path = path(env)
group_name, sched_id = path.match(%r{\A/groups/(.*)/schedules(?:/(.*))?\z}) && [$1, $2]
verb = verb(env)
- if verb == 'POST'
+ if %w(POST PUT).include? verb
body = body(env)
sched = JSON.parse(body)
unless sched_id.nil?
[405, headers, []]
end