~edwardloveall/scribe

ref: f05a12a880cbb1399925d9dc12317f6f5ce8a285 scribe/spec/support/action_helpers.cr -rw-r--r-- 291 bytes
f05a12a8Edward Loveall Add support for missing posts a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
module ActionHelpers
  private def action_context(path = "/")
    io = IO::Memory.new
    request = HTTP::Request.new("GET", path)
    response = HTTP::Server::Response.new(io)
    HTTP::Server::Context.new(request, response)
  end

  private def params
    {} of String => String
  end
end