mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Whitespaces ✂️
This commit is contained in:
parent
d38575f3f3
commit
4891aaa4a2
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue