Commit 43b317df358d3e2d1960e6a453726fe81a6cd0a8
1 parent
23bd8bbc
Exists in
web_steps_improvements
and in
9 other branches
restoring helper method to avoid colateral errors in tests
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
test/unit/disabled_enterprise_message_block_test.rb
... | ... | @@ -19,12 +19,17 @@ class DisabledEnterpriseMessageBlockTest < ActiveSupport::TestCase |
19 | 19 | block = enterprise.boxes.first.blocks.first |
20 | 20 | |
21 | 21 | ApplicationHelper.class_eval do |
22 | + alias_method :original_profile, :profile | |
22 | 23 | def profile |
23 | 24 | return Enterprise['disabled-enterprise'] |
24 | 25 | end |
25 | 26 | end |
26 | 27 | |
27 | 28 | assert_match 'This message is for disabled enterprises', render_block_content(block) |
29 | + | |
30 | + ApplicationHelper.class_eval do | |
31 | + alias_method :profile, :original_profile | |
32 | + end | |
28 | 33 | end |
29 | 34 | |
30 | 35 | should 'not be editable' do | ... | ... |