Sha256: 8fbeb0c0c1d48ce1463c91d0e26c004841c0da14122c81edc82eac2c4473ea75
Contents?: true
Size: 711 Bytes
Versions: 14
Compression:
Stored size: 711 Bytes
Contents
module FaaStRuby def self.included(base) base.extend(SpecHelper) $LOAD_PATH << Dir.pwd end module SpecHelper class Event @@event = Struct.new(:body, :query_params, :headers, :context) def self.new(body: 'example body', query_params: {'foo' => 'bar'}, headers: {'Foo' => 'Bar'}, context: '{"foo": "bar"}') @@event.new(body, query_params, headers, context) end end class Response @@response = Struct.new(:body, :status, :headers) def self.new(body, status, headers) @@response.new(body, status, headers) end end end def respond_with(body, status: 200, headers: {}) SpecHelper::Response.new(body, status, headers) end end
Version data entries
14 entries across 7 versions & 1 rubygems