replaced deprecated rspec should syntax with expect