Sha256: 65136e1bc0b1692734f70cf356f258a7a92b82e8a8d9166923016fcb74cbf095
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 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 it 'should reply Hello, World!' do body = handler(event).call.body expect(body).to be == "Hello, World!\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faastruby-0.4.0 | templates/ruby/example/spec/handler_spec.rb |