Skip to content

Commit

Permalink
[Controller Tests] Adds Missing HTTP Verbs
Browse files Browse the repository at this point in the history
Issue: #10

Garnet should supports all the HTTP verbs available for simulating
requests in a conntroller test. Currently is missing the Options, Trace,
and Connect http verbs

Adds missing HTTP Read Verbs to generate helper methods for
testing controllers.

With these changes Garnet has available all the HTTP verbs needed.
  • Loading branch information
eliasjpr authored and Elias J. Perez committed Apr 9, 2018
1 parent 185b0b8 commit d816ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/garnet_spec/controller/test.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "http/server"
module GarnetSpec::Controller
abstract class Test
macro inherited
{% http_read_verbs = %w(get head) %}
{% http_read_verbs = %w(get head options trace connect) %}
{% http_write_verbs = %w(post put patch delete) %}
{% http_verbs = http_read_verbs + http_write_verbs %}

Expand Down

0 comments on commit d816ee8

Please sign in to comment.