diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2019-02-28 13:32:01 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2019-03-07 13:13:34 +0300 |
commit | d9a6ba78ae3a1b4c909810fbff6edb39ebd34949 (patch) | |
tree | c8ab5fe8a4e69a1375b608e8a7ea7ee851b21e78 /spec | |
parent | 0b9fbb1d51bbbf205df507eb29296594529539c5 (diff) |
Update event filter spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/event_filter_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/lib/event_filter_spec.rb b/spec/lib/event_filter_spec.rb index 30016da6828..117983a6b47 100644 --- a/spec/lib/event_filter_spec.rb +++ b/spec/lib/event_filter_spec.rb @@ -26,10 +26,7 @@ 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(:created_event) { create(:event, :created, project: public_project, target: public_project) } - set(:updated_event) { create(:event, :updated, project: public_project, target: public_project) } - set(:closed_event) { create(:event, :closed, project: public_project, target: public_project) } - set(:reopened_event) { create(:event, :reopened, project: public_project, target: public_project) } + set(:issue_event) { create(:event, :created, 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) } @@ -56,7 +53,7 @@ describe EventFilter do let(:filter) { described_class::ISSUE } it 'filters issue events only' do - expect(filtered_events).to contain_exactly(created_event, updated_event, closed_event, reopened_event) + expect(filtered_events).to contain_exactly(issue_event) end end |