diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-03 20:00:05 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 12:53:14 +0100 |
commit | 11a559f7c9ce21b040c3a9c0544169f4885b9fa6 (patch) | |
tree | 8da4be4133d05b0f8cd21f5f6de94423818a626f /spec/models/event_spec.rb | |
parent | 8a7cd25d08789ee70eaa7de3367f7ad286c49272 (diff) | |
download | gitlab-ce-11a559f7c9ce21b040c3a9c0544169f4885b9fa6.tar.gz |
Singularize model name.
Diffstat (limited to 'spec/models/event_spec.rb')
-rw-r--r-- | spec/models/event_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 780eacbb8dc..8ea92410022 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -53,15 +53,15 @@ describe Event do describe 'after_create :track_user_interacted_projects' do let(:event) { build(:push_event, project: project, author: project.owner) } - it 'passes event to UserInteractedProjects.track' do - expect(UserInteractedProjects).to receive(:available?).and_return(true) - expect(UserInteractedProjects).to receive(:track).with(event) + it 'passes event to UserInteractedProject.track' do + expect(UserInteractedProject).to receive(:available?).and_return(true) + expect(UserInteractedProject).to receive(:track).with(event) event.save end - it 'does not call UserInteractedProjects.track if its not yet available' do - expect(UserInteractedProjects).to receive(:available?).and_return(false) - expect(UserInteractedProjects).not_to receive(:track) + it 'does not call UserInteractedProject.track if its not yet available' do + expect(UserInteractedProject).to receive(:available?).and_return(false) + expect(UserInteractedProject).not_to receive(:track) event.save end end |