Sha256: e63648b2b2af8e4fbea884d2c7653154bd44963d4cb7dd1bc3e2c47930235e51

Contents?: true

Size: 398 Bytes

Versions: 35

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'
require 'handler'

describe 'handler(event)' do
  let(:event) {Event.new(
    body: nil,
    query_params: {},
    headers: {},
    context: nil
  )}

  it 'should return a String' do
    body = handler(event).body
    expect(body).to be_a(String)
  end
  it 'should reply Hello, World!' do
    body = handler(event).body
    expect(body).to be == "Hello, World!\n"
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
faastruby-0.5.30 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.29 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.28 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.27 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.26 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.25 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.24 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.23 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.22 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.21 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.20 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.19 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.18 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.17 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.16 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.15 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.14 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.13 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.12 templates/ruby/example/spec/handler_spec.rb
faastruby-0.5.11 templates/ruby/example/spec/handler_spec.rb