Commit c0f97fc830bacdf4c9de6d8737a339018587726d

Authored by Rodrigo Souto
1 parent ec79663a

send_email: fix features tests

app/helpers/boxes_helper.rb
... ... @@ -99,9 +99,9 @@ module BoxesHelper
99 99 unless block.visible?
100 100 options[:title] = _("This block is invisible. Your visitors will not see it.")
101 101 end
102   - if @controller.send(:content_editor?)
103   - result = filter_html(result, block)
104   - end
  102 +
  103 + result = filter_html(result, block)
  104 +
105 105 box_decorator.block_target(block.box, block) +
106 106 content_tag('div',
107 107 content_tag('div',
... ...
plugins/send_email/features/send_email_plugin.feature
... ... @@ -7,7 +7,7 @@ Feature: send_email_plugin
7 7 And I am logged in as "joaosilva"
8 8  
9 9 Scenario: expand macro in article content
10   - Given plugin SendEmailPlugin is enabled on environment
  10 + Given plugin SendEmail is enabled on environment
11 11 And the following articles
12 12 | owner | name | body |
13 13 | joaosilva | sample-article | URL path to {sendemail} action |
... ... @@ -15,7 +15,7 @@ Feature: send_email_plugin
15 15 Then I should see "URL path to /profile/joaosilva/plugin/send_email/deliver action"
16 16  
17 17 Scenario: expand macro in block content
18   - Given plugin SendEmailPlugin is enabled on environment
  18 + Given plugin SendEmail is enabled on environment
19 19 And the following blocks
20 20 | owner | type | html |
21 21 | joaosilva | RawHTMLBlock | URL path to {sendemail} action |
... ...