Permalink
Browse files

Whitespaces ✂️

  • Loading branch information...
1 parent d38575f commit 4891aaa4a2ebbeb5c6aa3e467ee0e9304fe37cc8 @rafaelfranca rafaelfranca committed Jun 27, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 test/form_builder/hint_test.rb
@@ -41,12 +41,11 @@ def with_hint_for(object, *args)
with_hint_for @user, :name, :hint => 'Yay!', :id => 'hint', :class => 'yay'
assert_select 'span#hint.hint.yay'
end
-
+
test 'hint should be output as html_safe' do
with_hint_for @user, :name, :hint => '<b>Bold</b> and not...'
- assert_select 'span.hint', 'Bold and not...'
+ assert_select 'span.hint', 'Bold and not...'
end
-
# Without attribute name
@@ -110,7 +109,7 @@ def with_hint_for(object, *args)
assert_select 'span.hint', /My company!/
end
end
-
+
test 'hint should output translations as html_safe' do
store_translations(:en, :simple_form => { :hints => { :user => {
:edit => { :name => '<b>This is bold</b> and this is not...' }
@@ -119,7 +118,7 @@ def with_hint_for(object, *args)
assert_select 'span.hint', 'This is bold and this is not...'
end
end
-
+
# No object

0 comments on commit 4891aaa

Please sign in to comment.