summaryrefslogtreecommitdiff
path: root/spec/models/event_collection_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-09-06 12:07:33 +0200
committerRémy Coutable <remy@rymai.me>2018-09-26 18:34:26 +0200
commitd2afddfeff29c15cad737db4898664381ce0f985 (patch)
tree3fd5b7f6329bf4fe4ce9851e8bc16e92def8d205 /spec/models/event_collection_spec.rb
parent65cf805278c1d865ee0543508de92d5f4ecae4f0 (diff)
downloadgitlab-ce-d2afddfeff29c15cad737db4898664381ce0f985.tar.gz
Refactor EventFilter and increase its test coverage1801-allow-event_filter-to-be-set-in-the-url
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/event_collection_spec.rb')
-rw-r--r--spec/models/event_collection_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/event_collection_spec.rb b/spec/models/event_collection_spec.rb
index e0a87c18cc7..6078f429bdc 100644
--- a/spec/models/event_collection_spec.rb
+++ b/spec/models/event_collection_spec.rb
@@ -41,7 +41,7 @@ describe EventCollection do
end
it 'allows filtering of events using an EventFilter' do
- filter = EventFilter.new(EventFilter.issue)
+ filter = EventFilter.new(EventFilter::ISSUE)
events = described_class.new(projects, filter: filter).to_a
expect(events.length).to eq(1)