From 7317c6ed6a6a2987cf633e257c2b27b6e8977d10 Mon Sep 17 00:00:00 2001 From: riking Date: Mon, 25 Aug 2014 13:07:22 -0700 Subject: [PATCH] Fix tests for new route --- spec/controllers/user_badges_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/user_badges_controller_spec.rb b/spec/controllers/user_badges_controller_spec.rb index 24a1071df..d95cf0cc5 100644 --- a/spec/controllers/user_badges_controller_spec.rb +++ b/spec/controllers/user_badges_controller_spec.rb @@ -26,7 +26,7 @@ describe UserBadgesController do end it 'returns user_badges for a user' do - xhr :get, :index, username: user.username + xhr :get, :username, username: user.username response.status.should == 200 parsed = JSON.parse(response.body) @@ -42,7 +42,7 @@ describe UserBadgesController do end 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 parsed = JSON.parse(response.body)