Skip to content

Commit

Permalink
Add usercontroller#me spec for confirmed_at
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Jan 5, 2024
1 parent b7e36fc commit cfb316c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/controllers/api/v1/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cfb316c

Please sign in to comment.