Use expect syntax for rspec tests