changing to new rspec expectation syntax