diff options
Diffstat (limited to 'spec/models/event_spec.rb')
-rw-r--r-- | spec/models/event_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 9700852e567..9579c4c2d27 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -32,7 +32,7 @@ RSpec.describe Event do describe 'after_create :set_last_repository_updated_at' do context 'with a push event' do it 'updates the project last_repository_updated_at and updated_at' do - project.touch(:last_repository_updated_at, time: 1.year.ago) # rubocop: disable Rails/SkipsModelValidations + project.touch(:last_repository_updated_at, time: 1.year.ago) event = create_push_event(project, project.first_owner) @@ -431,8 +431,6 @@ RSpec.describe Event do include_examples 'visibility examples' do let(:visibility) { visible_to_none_except(:member) } end - - include_examples 'visible to author', true end context 'private project' do @@ -866,7 +864,7 @@ RSpec.describe Event do end it 'updates the project' do - project.touch(:last_activity_at, time: 1.year.ago) # rubocop: disable Rails/SkipsModelValidations + project.touch(:last_activity_at, time: 1.year.ago) event = create_push_event(project, project.first_owner) @@ -882,7 +880,7 @@ RSpec.describe Event do "project:#{project.id}") end - project.touch(:last_activity_at, time: 1.year.ago) # rubocop: disable Rails/SkipsModelValidations + project.touch(:last_activity_at, time: 1.year.ago) create_push_event(project, project.first_owner) end |