Sha256: 06c7f74d517b8d32319f7e76a335589dfc052d0854e48271553a8cb04373adf2

Contents?: true

Size: 268 Bytes

Versions: 8

Compression:

Stored size: 268 Bytes

Contents

require 'spec_helper'
require 'handler'

describe 'handler(event)' do
  let(:event) {SpecHelper::Event.new}

  it 'should return Hash, String or Array' do
    body = handler(event).call.body
    expect([String, Hash, Array, ].include? body.class).to be true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faastruby-0.4.0 templates/ruby/example-blank/spec/handler_spec.rb
faastruby-0.3.8 templates/ruby/example-blank/spec/handler_spec.rb
faastruby-0.3.7 templates/ruby/example-blank/spec/handler_spec.rb
faastruby-0.3.6 templates/ruby/example-blank/spec/handler_spec.rb
faastruby-0.3.5 example-blank/spec/handler_spec.rb
faastruby-0.3.4 example-blank/spec/handler_spec.rb
faastruby-0.3.3 example-blank/spec/handler_spec.rb
faastruby-0.3.2 example-blank/spec/handler_spec.rb