Adapted RSpec matchers.