mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix tests for new route
This commit is contained in:
parent
234956234b
commit
7317c6ed6a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue