Convert to RSpec expect syntax