Update event filter spec to included removed event types

This commit is contained in:
George Tsiolis 2019-03-07 12:19:06 +02:00
parent bdae530603
commit f40aecddb7

View file

@ -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