diff options
author | 🙈 jacopo beschi 🙉 <intrip@gmail.com> | 2018-06-01 18:09:08 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-01 18:09:08 +0300 |
commit | 4c8783636cdc279aea802760146d58e6259bed57 (patch) | |
tree | 0dac9783096bc26435d0fba5366a6fa6a0d9925b /spec/models/timelog_spec.rb | |
parent | d637fbe9af3f1efb9ce0a35c018a83c8b96d1f34 (diff) |
Resolve "Update `updated_at` on an issue/mr on every issue/mr changes"
Diffstat (limited to 'spec/models/timelog_spec.rb')
-rw-r--r-- | spec/models/timelog_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/timelog_spec.rb b/spec/models/timelog_spec.rb index 6e30798356c..a0c93c531ea 100644 --- a/spec/models/timelog_spec.rb +++ b/spec/models/timelog_spec.rb @@ -5,6 +5,9 @@ RSpec.describe Timelog do let(:issue) { create(:issue) } let(:merge_request) { create(:merge_request) } + it { is_expected.to belong_to(:issue).touch(true) } + it { is_expected.to belong_to(:merge_request).touch(true) } + it { is_expected.to be_valid } it { is_expected.to validate_presence_of(:time_spent) } |