Sha256: d77aa45890759dc0d1b41d8a99e0114c5797ebbe11c54c8d3e196f57e9d42915

Contents?: true

Size: 883 Bytes

Versions: 31

Compression:

Stored size: 883 Bytes

Contents

$LOAD_PATH << Dir.pwd
module FaaStRuby
  require 'faastruby/server/errors'
  require 'faastruby/server/runner_methods'
  require 'faastruby/server/function_object'
  require 'faastruby/server/event'
  require 'faastruby/server/response'
  ##########
  # Add call method to the Response class
  # for backwards compatibility.
  # This will be removed on v0.6
  class Response
    def call
      self
    end
  end
  # Add default initialize values to the
  # Event class for backwards compatibility.
  # This will be removed on v0.6
  class Event
    def initialize(body: nil, query_params: {}, headers: {}, context: nil)
      @body = body
      @query_params = query_params
      @headers = headers
      @context = context
    end
  end
  #########
  module SpecHelper
    include FaaStRuby
    include RunnerMethods
    def publish(channel, data: nil)
      true
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
faastruby-0.5.26 lib/faastruby/spec_helper.rb
faastruby-0.5.25 lib/faastruby/spec_helper.rb
faastruby-0.5.24 lib/faastruby/spec_helper.rb
faastruby-0.5.23 lib/faastruby/spec_helper.rb
faastruby-0.5.22 lib/faastruby/spec_helper.rb
faastruby-0.5.21 lib/faastruby/spec_helper.rb
faastruby-0.5.20 lib/faastruby/spec_helper.rb
faastruby-0.5.19 lib/faastruby/spec_helper.rb
faastruby-0.5.18 lib/faastruby/spec_helper.rb
faastruby-0.5.17 lib/faastruby/spec_helper.rb
faastruby-0.5.16 lib/faastruby/spec_helper.rb
faastruby-0.5.15 lib/faastruby/spec_helper.rb
faastruby-0.5.14 lib/faastruby/spec_helper.rb
faastruby-0.5.13 lib/faastruby/spec_helper.rb
faastruby-0.5.12 lib/faastruby/spec_helper.rb
faastruby-0.5.11 lib/faastruby/spec_helper.rb
faastruby-0.5.10 lib/faastruby/spec_helper.rb
faastruby-0.5.9 lib/faastruby/spec_helper.rb
faastruby-0.5.8 lib/faastruby/spec_helper.rb
faastruby-0.5.7 lib/faastruby/spec_helper.rb