Use the test helpers

This commit is contained in:
Rafael Mendonça França 2012-04-21 09:57:27 -03:00
parent 1ac8a07c41
commit 4c084bf6e0
1 changed files with 4 additions and 4 deletions

View File

@ -99,16 +99,16 @@ class WrapperTest < ActionView::TestCase
test 'custom wrappers on a form basis' do
swap_wrapper :another do
concat simple_form_for(@user) { |f|
with_concat_form_for(@user) do |f|
f.input :name
}
end
assert_no_select "section.custom_wrapper div.another_wrapper label"
assert_no_select "section.custom_wrapper div.another_wrapper input.string"
concat simple_form_for(@user, :wrapper => :another) { |f|
with_concat_form_for(@user, :wrapper => :another) do |f|
f.input :name
}
end
assert_select "section.custom_wrapper div.another_wrapper label"
assert_select "section.custom_wrapper div.another_wrapper input.string"