diff --git a/test/functional/profile_design_controller_test.rb b/test/functional/profile_design_controller_test.rb index eb81830..fff158e 100644 --- a/test/functional/profile_design_controller_test.rb +++ b/test/functional/profile_design_controller_test.rb @@ -528,15 +528,13 @@ class ProfileDesignControllerTest < ActionController::TestCase end should 'allow admins to add RawHTMLBlock' do - profile.stubs(:is_admin?).with(profile.environment).returns(true) + profile.stubs(:is_admin?).with(anything).returns(true) @controller.stubs(:user).returns(profile) get :index, :profile => 'designtestuser' assert_tag :tag => 'div', :attributes => { :id => 'block-RawHTMLBlock' } end should 'not allow normal users to add RawHTMLBlock' do - profile.stubs(:is_admin?).with(profile.environment).returns(false) - @controller.stubs(:user).returns(profile) get :index, :profile => 'designtestuser' assert_no_tag :tag => 'div', :attributes => { :id => 'block-RawHTMLBlock' } end -- libgit2 0.21.2