Refactor ApprovalState spec with shared example
Applying a shared_examples_group to DRY up the test. Some of the tests would test expect(subject.can_approve?(nil)).to be_falsey and some would miss that. So this change makes them all consistent.
Showing
Please register or sign in to comment