Commit 198eff754671b18fd4dc7ee2c1c3c1c83d9fa9ed
1 parent
a4458d70
Exists in
master
and in
28 other branches
application-controller-tests: fix due to use of instance_eval instead of call
Showing
1 changed file
with
2 additions
and
8 deletions
Show diff stats
test/functional/application_controller_test.rb
... | ... | @@ -418,11 +418,8 @@ class ApplicationControllerTest < ActionController::TestCase |
418 | 418 | |
419 | 419 | should 'include content in the beginning of body supplied by plugins regardless it is a block or html code' do |
420 | 420 | class TestBodyBeginning1Plugin < Noosfero::Plugin |
421 | - def plugin1_method | |
422 | - '[[plugin1]]' | |
423 | - end | |
424 | 421 | def body_beginning |
425 | - lambda {"<span id='plugin1'>This is #{plugin1_method} speaking!</span>"} | |
422 | + lambda {"<span id='plugin1'>This is [[plugin1]] speaking!</span>"} | |
426 | 423 | end |
427 | 424 | end |
428 | 425 | class TestBodyBeginning2Plugin < Noosfero::Plugin |
... | ... | @@ -442,11 +439,8 @@ class ApplicationControllerTest < ActionController::TestCase |
442 | 439 | should 'include content in the ending of head supplied by plugins regardless it is a block or html code' do |
443 | 440 | |
444 | 441 | class TestHeadEnding1Plugin < Noosfero::Plugin |
445 | - def plugin1_method | |
446 | - '[[plugin1]]' | |
447 | - end | |
448 | 442 | def head_ending |
449 | - lambda {"<script>alert('This is #{plugin1_method} speaking!')</script>"} | |
443 | + lambda {"<script>alert('This is [[plugin1]] speaking!')</script>"} | |
450 | 444 | end |
451 | 445 | end |
452 | 446 | class TestHeadEnding2Plugin < Noosfero::Plugin | ... | ... |