From cfb316c48a1f23f8307ea2a5390904cf9a22ca9d Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Fri, 5 Jan 2024 15:38:32 -0600 Subject: [PATCH] Add usercontroller#me spec for confirmed_at --- spec/controllers/api/v1/users_controller_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/controllers/api/v1/users_controller_spec.rb b/spec/controllers/api/v1/users_controller_spec.rb index 5190ecad0..6e042757c 100644 --- a/spec/controllers/api/v1/users_controller_spec.rb +++ b/spec/controllers/api/v1/users_controller_spec.rb @@ -392,6 +392,12 @@ expect(result).to eq(user.upload_whitelist) end + it "should have the confirmed_at for the user" do + result = user_response["confirmed_at"] + # Dates are JSON serialized via iso8601 and .to_json adds quotes + expect(result).to eq(user.confirmed_at.iso8601(3)) + end + it_behaves_like "an api response" end