1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Whitespaces ✂️

This commit is contained in:
Rafael Mendonça França 2012-06-26 22:58:18 -03:00
parent d38575f3f3
commit 4891aaa4a2

View file

@ -41,12 +41,11 @@ class HintTest < ActionView::TestCase
with_hint_for @user, :name, :hint => 'Yay!', :id => 'hint', :class => 'yay' with_hint_for @user, :name, :hint => 'Yay!', :id => 'hint', :class => 'yay'
assert_select 'span#hint.hint.yay' assert_select 'span#hint.hint.yay'
end end
test 'hint should be output as html_safe' do test 'hint should be output as html_safe' do
with_hint_for @user, :name, :hint => '<b>Bold</b> and not...' 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 end
# Without attribute name # Without attribute name
@ -110,7 +109,7 @@ class HintTest < ActionView::TestCase
assert_select 'span.hint', /My company!/ assert_select 'span.hint', /My company!/
end end
end end
test 'hint should output translations as html_safe' do test 'hint should output translations as html_safe' do
store_translations(:en, :simple_form => { :hints => { :user => { store_translations(:en, :simple_form => { :hints => { :user => {
:edit => { :name => '<b>This is bold</b> and this is not...' } :edit => { :name => '<b>This is bold</b> and this is not...' }
@ -119,7 +118,7 @@ class HintTest < ActionView::TestCase
assert_select 'span.hint', 'This is bold and this is not...' assert_select 'span.hint', 'This is bold and this is not...'
end end
end end
# No object # No object