From ed749ee3880fca80662eaea5551877d4c19abe24 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 28 Apr 2011 20:08:24 -0300 Subject: [PATCH] Replacing anything by real parameter on profile_design test --- test/functional/profile_design_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/profile_design_controller_test.rb b/test/functional/profile_design_controller_test.rb index 3f0cbfa..d9605e5 100644 --- a/test/functional/profile_design_controller_test.rb +++ b/test/functional/profile_design_controller_test.rb @@ -412,14 +412,14 @@ class ProfileDesignControllerTest < Test::Unit::TestCase end should 'allow admins to add RawHTMLBlock' do - profile.stubs(:is_admin?).with(anything).returns(true) + profile.stubs(:is_admin?).with(profile.environment).returns(true) @controller.stubs(:user).returns(profile) get :add_block, :profile => 'designtestuser' assert_tag :tag => 'input', :attributes => { :id => 'type_rawhtmlblock', :value => 'RawHTMLBlock' } end should 'not allow normal users to add RawHTMLBlock' do - profile.stubs(:is_admin?).with(anything).returns(false) + profile.stubs(:is_admin?).with(profile.environment).returns(false) @controller.stubs(:user).returns(profile) get :add_block, :profile => 'designtestuser' assert_no_tag :tag => 'input', :attributes => { :id => 'type_rawhtmlblock', :value => 'RawHTMLBlock' } -- libgit2 0.21.2