use rspec predicate matchers #4315