Commit e59874da370e8af3203effd014226403d0da05d8

Authored by Antonio Terceiro
1 parent b26324d5

ActionItem900: fixing failing tests

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/functional/profile_controller_test.rb
... ... @@ -66,7 +66,7 @@ class ProfileControllerTest < Test::Unit::TestCase
66 66 should 'render join template without layout when called with AJAX' do
67 67 community = Community.create!(:name => 'my test community')
68 68 login_as(@profile.identifier)
69   - @request.expects(:xhr?).returns(true)
  69 + @request.expects(:xhr?).returns(true).at_least_once
70 70  
71 71 get :join, :profile => community.identifier
72 72 assert_response :success
... ... @@ -77,7 +77,7 @@ class ProfileControllerTest < Test::Unit::TestCase
77 77 should 'render join template with layout in general' do
78 78 community = Community.create!(:name => 'my test community')
79 79 login_as(@profile.identifier)
80   - @request.expects(:xhr?).returns(false)
  80 + @request.expects(:xhr?).returns(false).at_least_once
81 81  
82 82 get :join, :profile => community.identifier
83 83 assert_response :success
... ...