diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2019-03-07 13:19:06 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2019-03-07 13:19:06 +0300 |
commit | f40aecddb763cf0b9a37a8e9aa00229e60bd5e2b (patch) | |
tree | b7d53ba1e7d55671f83f1edfbcd44b81053ae06e /spec | |
parent | bdae53060354c8ea525b8c9c5202d6097ee4dcc3 (diff) |
Update event filter spec to included removed event types
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/event_filter_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/lib/event_filter_spec.rb b/spec/lib/event_filter_spec.rb index 117983a6b47..6648e141b7a 100644 --- a/spec/lib/event_filter_spec.rb +++ b/spec/lib/event_filter_spec.rb @@ -26,7 +26,10 @@ describe EventFilter do set(:push_event) { create(:push_event, project: public_project) } set(:merged_event) { create(:event, :merged, project: public_project, target: public_project) } - set(:issue_event) { create(:event, :created, project: public_project, target: create(:issue, project: public_project)) } + set(:created_event) { create(:event, :created, project: public_project, target: create(:issue, project: public_project)) } + set(:updated_event) { create(:event, :updated, project: public_project, target: create(:issue, project: public_project)) } + set(:closed_event) { create(:event, :closed, project: public_project, target: create(:issue, project: public_project)) } + set(:reopened_event) { create(:event, :reopened, project: public_project, target: create(:issue, project: public_project)) } set(:comments_event) { create(:event, :commented, project: public_project, target: public_project) } set(:joined_event) { create(:event, :joined, project: public_project, target: public_project) } set(:left_event) { create(:event, :left, project: public_project, target: public_project) } @@ -53,7 +56,7 @@ describe EventFilter do let(:filter) { described_class::ISSUE } it 'filters issue events only' do - expect(filtered_events).to contain_exactly(issue_event) + expect(filtered_events).to contain_exactly(created_event, updated_event, closed_event, reopened_event) end end |