Commit c63c445e authored by Stan Hu's avatar Stan Hu
Browse files

Fix failing spec in spec/features/users/login_spec.rb

This spec would start to fail on the first of the month because the
generated text would have a zero-padded day (e.g. 01 vs 1), whereas the
expected text check used an unpadded day via the `-d` parameter in
strftime ( To fix this, we
use use the `d` parameter to pad zeros.

This spec was introduced recently in

parent 09506d760b8b
......@@ -447,7 +447,7 @@ def sign_in_using_saml!
'You can leave Group 1 and leave Group 2. '\
'You need to do this '\
'before '\
"#{( + 2.days).strftime("%a, %-d %b %Y %H:%M:%S %z")}"
"#{( + 2.days).strftime("%a, %d %b %Y %H:%M:%S %z")}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment