• Luke Duncalfe's avatar
    Refactor ApprovalState spec with shared example · 62362ba9
    Luke Duncalfe authored
    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.
    62362ba9
approval_state_spec.rb 39.3 KB