From 588227cda9c3459efd72987cb7d1d4879b106408 Mon Sep 17 00:00:00 2001 From: leenasn Date: Tue, 10 Nov 2015 13:13:11 +0530 Subject: [PATCH] Remove new line from the matcher --- spec/controllers/heartbeats_controller_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/controllers/heartbeats_controller_spec.rb b/spec/controllers/heartbeats_controller_spec.rb index 8ba5709..9a5228f 100644 --- a/spec/controllers/heartbeats_controller_spec.rb +++ b/spec/controllers/heartbeats_controller_spec.rb @@ -11,8 +11,7 @@ RSpec.describe HeartbeatsController, type: :controller do it "Respond with next heartbeat time" do post :create, format: :json expect(response).to have_http_status(:created) - expect(JSON.parse(response.body)["next_heartbeat_time"]).to - match(heartbeat.next_heartbeat_time) + expect(JSON.parse(response.body)["next_heartbeat_time"]).to match(heartbeat.next_heartbeat_time) end end