Remove new line from the matcher

This commit is contained in:
leenasn
2015-11-10 13:13:11 +05:30
parent a6b2df2123
commit 588227cda9

View File

@@ -11,8 +11,7 @@ RSpec.describe HeartbeatsController, type: :controller do
it "Respond with next heartbeat time" do it "Respond with next heartbeat time" do
post :create, format: :json post :create, format: :json
expect(response).to have_http_status(:created) expect(response).to have_http_status(:created)
expect(JSON.parse(response.body)["next_heartbeat_time"]).to expect(JSON.parse(response.body)["next_heartbeat_time"]).to match(heartbeat.next_heartbeat_time)
match(heartbeat.next_heartbeat_time)
end end
end end