Commit 43b317df358d3e2d1960e6a453726fe81a6cd0a8

Authored by Joenio Costa
1 parent 23bd8bbc

restoring helper method to avoid colateral errors in tests

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
... ...