Skip to content

Commit

Permalink
[Controller Tests] Adds Missing HTTP Verbs (#11)
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 robacarp committed Apr 13, 2018
1 parent 185b0b8 commit 8132027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/garnet_spec/controller/test.cr
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 8132027

Please sign in to comment.