Commit d9a6ba78 authored by George Tsiolis's avatar George Tsiolis

Update event filter spec

parent 0b9fbb1d
...@@ -26,10 +26,7 @@ describe EventFilter do ...@@ -26,10 +26,7 @@ describe EventFilter do
set(:push_event) { create(:push_event, project: public_project) } set(:push_event) { create(:push_event, project: public_project) }
set(:merged_event) { create(:event, :merged, project: public_project, target: 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(:issue_event) { create(:event, :created, project: public_project, target: create(:issue, project: 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(:comments_event) { create(:event, :commented, project: public_project, target: 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(:joined_event) { create(:event, :joined, project: public_project, target: public_project) }
set(:left_event) { create(:event, :left, 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 ...@@ -56,7 +53,7 @@ describe EventFilter do
let(:filter) { described_class::ISSUE } let(:filter) { described_class::ISSUE }
it 'filters issue events only' do 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment