Fixed failing rspec test