example/spec/handler_spec.rb in faastruby-0.3.2 vs example/spec/handler_spec.rb in faastruby-0.3.3
- old
+ new
@@ -8,13 +8,13 @@
body = handler(event).call.body
expect([String, Hash, Array].include? body.class).to be true
end
it 'should add the name to the response string' do
body = handler(event).call.body
- expect(body).to be == 'Hello, Ruby!'
+ expect(body).to be == "Hello, Ruby!\n"
end
it 'should say Hello, World! when name is not present' do
event = SpecHelper::Event.new(body: nil)
body = handler(event).call.body
- expect(body).to be == 'Hello, World!'
+ expect(body).to be == "Hello, World!\n"
end
end