Trying to fix bug with rspec test