diff options
author | Kia Mei Somabes <kia@aelogica.com> | 2018-07-12 09:26:09 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-07-12 09:26:09 +0000 |
commit | 37af75a2e024bf35f09e6f014626019e960ad9b9 (patch) | |
tree | f156e2fc0ced165327e9a48ce3ae153608ff2bb4 /spec/support | |
parent | d2c5ac61cd964e6c3ff22021734002b6e591a128 (diff) | |
download | gitlab-ce-37af75a2e024bf35f09e6f014626019e960ad9b9.tar.gz |
Resolve "do not set updated_at when creating note"
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/requests/api/notes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/shared_examples/requests/api/notes.rb b/spec/support/shared_examples/requests/api/notes.rb index 79b2196660c..1b563021244 100644 --- a/spec/support/shared_examples/requests/api/notes.rb +++ b/spec/support/shared_examples/requests/api/notes.rb @@ -121,6 +121,7 @@ shared_examples 'noteable API' do |parent_type, noteable_type, id_name| expect(json_response['body']).to eq('hi!') expect(json_response['author']['username']).to eq(user.username) expect(Time.parse(json_response['created_at'])).to be_like_time(creation_time) + expect(Time.parse(json_response['updated_at'])).to be_like_time(creation_time) end end |