diff options
Diffstat (limited to 'spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb b/spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb index 74dbec063e0..625f16824b4 100644 --- a/spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb +++ b/spec/support/shared_examples/requests/access_tokens_controller_shared_examples.rb @@ -72,7 +72,7 @@ RSpec.shared_examples 'GET access tokens are paginated and ordered' do first_token = assigns(:active_access_tokens).first.as_json expect(first_token['name']).to eq("Token1") - expect(first_token['expires_at']).to eq(expires_1_day_from_now.strftime("%Y-%m-%d")) + expect(first_token['expires_at']).to eq(expires_1_day_from_now.iso8601) end it "orders tokens on id in case token has same expires_at" do @@ -82,11 +82,11 @@ RSpec.shared_examples 'GET access tokens are paginated and ordered' do first_token = assigns(:active_access_tokens).first.as_json expect(first_token['name']).to eq("Token3") - expect(first_token['expires_at']).to eq(expires_1_day_from_now.strftime("%Y-%m-%d")) + expect(first_token['expires_at']).to eq(expires_1_day_from_now.iso8601) second_token = assigns(:active_access_tokens).second.as_json expect(second_token['name']).to eq("Token1") - expect(second_token['expires_at']).to eq(expires_1_day_from_now.strftime("%Y-%m-%d")) + expect(second_token['expires_at']).to eq(expires_1_day_from_now.iso8601) end end |