Rspec test passing. Fixed for Ajax requests