templates/crystal/example/spec/handler_spec.cr in faastruby-0.4.0 vs templates/crystal/example/spec/handler_spec.cr in faastruby-0.4.1
- old
+ new
@@ -8,10 +8,10 @@
"headers" => {"Content-Type" => "application/json"},
"query_params" => {} of String => String
}
event = Event.from_json(event_hash.to_json)
- it "should return Hash, String or Array" do
+ it "should return String" do
body = handler(event).body
body.class.should eq(String)
end
it "should add the name to the response string" do
body = handler(event).body