From 2f3faa63f9de47c8467133c369a0563ebe1a96ef Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Tue, 5 Aug 2014 14:00:38 -0300 Subject: [PATCH] adapt functional test to new proposal to add blocks --- test/functional/profile_design_controller_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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