Fix the custom RSpec matcher

The custom matcher did not cause the tests to fail
when the assertion wasn't met.