Commit 325e96fe27ffd21a27ba7bad5f3a4fcfab165877
1 parent
64fd315b
Exists in
master
and in
27 other branches
invite-controller: fix test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/invite_controller_test.rb
@@ -268,7 +268,7 @@ class InviteControllerTest < ActionController::TestCase | @@ -268,7 +268,7 @@ class InviteControllerTest < ActionController::TestCase | ||
268 | 268 | ||
269 | get :search_friend, :profile => community.identifier, :q => 'will' | 269 | get :search_friend, :profile => community.identifier, :q => 'will' |
270 | 270 | ||
271 | - assert_equivalent [{"name" => friend1.name, "id" => friend1.id}].to_json, @response.body | 271 | + assert_equivalent [{"name" => friend1.name, "id" => friend1.id}], json_response |
272 | end | 272 | end |
273 | 273 | ||
274 | should 'invite registered users through profile id' do | 274 | should 'invite registered users through profile id' do |