From 814fd83d328946ffa6a9f9c451dc0503450e3fef Mon Sep 17 00:00:00 2001 From: Juan Rodriguez Date: Mon, 13 May 2024 22:59:22 +0200 Subject: [PATCH] test: ping spec --- spec/integration/ping_spec.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/integration/ping_spec.cr diff --git a/spec/integration/ping_spec.cr b/spec/integration/ping_spec.cr new file mode 100644 index 0000000..24f1d7e --- /dev/null +++ b/spec/integration/ping_spec.cr @@ -0,0 +1,10 @@ +require "../spec_helper" + +describe App::Controllers::Ping do + it "should return pong" do + get "/api/ping" + + expected = {"pong" => "ok"}.to_json + response.body.should eq(expected) + end +end