Adds Missing Filter Test Cases
MR Overview
While working on !298 (merged) it was noticed that we do not have any test cases ensuring that a number of filters are working correctly from the engine
class. (Seen in screenshot below)
Adding testing for lines 427, 443, 452, 456, and 460 will help to ensure that we are not breaking the Gems current functionality before we merge in MR !298 (merged).
Test Cases To Write
-
Line 427 - When conditions[:date]
andresource[:type]
isbranches
EXPECT: To useBrancheDateFilter
-
Line 443 - When NOT conditions[:date]
andresource[:type]
==branches
EXPECT: To useBranchProtectedFilter
-
Line 452 - When NOT conditions[:date]
andconditions[:no_additional_lables]
exists EXPECT: To useNoAdditionalLabelsConditionsFilter
-
Line 456 - When NOT conditions[:date]
andconditions[:author_member]
exists EXPECT: To useAuthorMemberConditionsFilter
-
Line 460 - When NOT conditions[:date]
andconditions[:assignee_member]
exists EXPECT: To useAssigneeMemberConditionsFilter
Edited by Dillon Wheeler