From 198eff754671b18fd4dc7ee2c1c3c1c83d9fa9ed Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 5 May 2014 18:07:58 +0000 Subject: [PATCH] application-controller-tests: fix due to use of instance_eval instead of call --- test/functional/application_controller_test.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index fd1c4da..8590e34 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -418,11 +418,8 @@ class ApplicationControllerTest < ActionController::TestCase should 'include content in the beginning of body supplied by plugins regardless it is a block or html code' do class TestBodyBeginning1Plugin < Noosfero::Plugin - def plugin1_method - '[[plugin1]]' - end def body_beginning - lambda {"This is #{plugin1_method} speaking!"} + lambda {"This is [[plugin1]] speaking!"} end end class TestBodyBeginning2Plugin < Noosfero::Plugin @@ -442,11 +439,8 @@ class ApplicationControllerTest < ActionController::TestCase should 'include content in the ending of head supplied by plugins regardless it is a block or html code' do class TestHeadEnding1Plugin < Noosfero::Plugin - def plugin1_method - '[[plugin1]]' - end def head_ending - lambda {""} + lambda {""} end end class TestHeadEnding2Plugin < Noosfero::Plugin -- libgit2 0.21.2