diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0234033..1917b6b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -128,7 +128,7 @@ module ApplicationHelper # message DIV button = link_to_function(_('Help'), "alert('change me, Leandro!')") - text = content_tag('div', button + content_tag('div', content, :class => 'help_message'), :class => 'help_box') + text = content_tag('div', button + content_tag('div', content, :class => 'help_message', :style => 'display: none;'), :class => 'help_box') unless block.nil? concat(text, block.binding) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 3a9cd7e..468b850 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -61,7 +61,7 @@ class ApplicationControllerTest < Test::Unit::TestCase :descendant => { :tag => 'div', :content => /my_help_message/, - :attributes => { :class => 'help_message'} + :attributes => { :class => 'help_message', :style => /display:\s+none/} } }) end @@ -74,7 +74,7 @@ class ApplicationControllerTest < Test::Unit::TestCase :descendant => { :tag => 'div', :content => /my_help_message/, - :attributes => { :class => 'help_message'} + :attributes => { :class => 'help_message', :style => /display:\s+none/} } }) end @@ -86,7 +86,7 @@ class ApplicationControllerTest < Test::Unit::TestCase :attributes => { :class => 'help_box'}, :descendant => { :tag => 'div', - :attributes => { :class => 'help_message'}, + :attributes => { :class => 'help_message', :style => /display:\s+none/}, :descendant => { :tag => 'strong', :content => /my_bold_help_message/ @@ -102,7 +102,7 @@ class ApplicationControllerTest < Test::Unit::TestCase :attributes => { :class => 'help_box'}, :descendant => { :tag => 'div', - :attributes => { :class => 'help_message'}, + :attributes => { :class => 'help_message', :style => /display:\s+none/}, :descendant => { :tag => 'strong', :content => /my_bold_help_message/ -- libgit2 0.21.2