convert rspec matchers to new syntax