From f84cb4a6cecfa5861908da8747dfb3c8d7d3832d Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 11 Jun 2008 18:25:12 +0000 Subject: [PATCH] ActionItem44: adjusting test --- test/functional/profile_editor_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/profile_editor_controller_test.rb b/test/functional/profile_editor_controller_test.rb index 0b92858..952427f 100644 --- a/test/functional/profile_editor_controller_test.rb +++ b/test/functional/profile_editor_controller_test.rb @@ -342,20 +342,20 @@ class ProfileEditorControllerTest < Test::Unit::TestCase end should 'link to mailconf' do - MailConf.expects(:enabled?).returns(true) + MailConf.expects(:enabled?).returns(true).at_least_once get :index, :profile => 'ze' assert_tag :tag => 'a', :attributes => { :href => '/myprofile/ze/mailconf' } end should 'not link to mailconf for organizations' do - MailConf.stubs(:enabled?).returns(true) + MailConf.stubs(:enabled?).returns(true).at_least_once org = Organization.create!(:name => 'test org', :identifier => 'testorg', :contact_person => 'my contact') get :index, :profile => 'testorg' assert_no_tag :tag => 'a', :attributes => { :href => '/myprofile/testorg/mailconf' } end should 'not link to mailconf if mail not enabled' do - MailConf.expects(:enabled?).returns(false) + MailConf.expects(:enabled?).returns(false).at_least_once get :index, :profile => 'ze' assert_no_tag :tag => 'a', :attributes => { :href => '/myprofile/ze/mailconf' } end -- libgit2 0.21.2