Sha256: aefcfdc077c104268e855594a1592e594bf371e3899feb8840e21267c2b19e55

Contents?: true

Size: 344 Bytes

Versions: 12

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'
require 'handler'

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
faastruby-0.4.12 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.11 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.10 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.9 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.8 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.7 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.6 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.5 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.4 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.3 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.2 templates/ruby/example/spec/handler_spec.rb
faastruby-0.4.1 templates/ruby/example/spec/handler_spec.rb