Fix tests for new route

This commit is contained in:
riking 2014-08-25 13:07:22 -07:00
parent 234956234b
commit 7317c6ed6a

View file

@ -26,7 +26,7 @@ describe UserBadgesController do
end end
it 'returns user_badges for a user' do it 'returns user_badges for a user' do
xhr :get, :index, username: user.username xhr :get, :username, username: user.username
response.status.should == 200 response.status.should == 200
parsed = JSON.parse(response.body) parsed = JSON.parse(response.body)
@ -42,7 +42,7 @@ describe UserBadgesController do
end end
it 'includes counts when passed the aggregate argument' do it 'includes counts when passed the aggregate argument' do
xhr :get, :index, username: user.username, grouped: true xhr :get, :username, username: user.username, grouped: true
response.status.should == 200 response.status.should == 200
parsed = JSON.parse(response.body) parsed = JSON.parse(response.body)