diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index b9519f9..6811be1 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -66,7 +66,7 @@ class ProfileControllerTest < Test::Unit::TestCase should 'render join template without layout when called with AJAX' do community = Community.create!(:name => 'my test community') login_as(@profile.identifier) - @request.expects(:xhr?).returns(true) + @request.expects(:xhr?).returns(true).at_least_once get :join, :profile => community.identifier assert_response :success @@ -77,7 +77,7 @@ class ProfileControllerTest < Test::Unit::TestCase should 'render join template with layout in general' do community = Community.create!(:name => 'my test community') login_as(@profile.identifier) - @request.expects(:xhr?).returns(false) + @request.expects(:xhr?).returns(false).at_least_once get :join, :profile => community.identifier assert_response :success -- libgit2 0.21.2