Resolved bug with rspec test