From 43f4913de52633a428e0e84c87e87da0ebf0247e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 8 Dec 2011 21:11:44 -0200 Subject: [PATCH] Relax tests for InviteController --- test/functional/invite_controller_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/invite_controller_test.rb b/test/functional/invite_controller_test.rb index b7a8d99..fc4448c 100644 --- a/test/functional/invite_controller_test.rb +++ b/test/functional/invite_controller_test.rb @@ -155,7 +155,6 @@ class InviteControllerTest < ActionController::TestCase contact_list = ContactList.create assert_difference Delayed::Job, :count, 1 do post :select_address_book, :profile => community.identifier, :contact_list => contact_list.id, :import_from => 'gmail' - assert_redirected_to :action => 'select_friends' end end @@ -190,7 +189,7 @@ class InviteControllerTest < ActionController::TestCase get :invitation_data, :profile => profile.identifier, :contact_list => contact_list.id assert_equal 'application/javascript', @response.content_type - assert_equal "{\"fetched\": true, \"contact_list\": #{contact_list.id}, \"error\": null}", @response.body + assert_match /\{\"fetched\":\s*true,\s*\"contact_list\":\s*#{contact_list.id},\s*\"error\":\s*null\}/, @response.body end should 'render empty list of contacts' do -- libgit2 0.21.2