1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/test/form_helper_test.rb
2009-12-08 11:48:31 -02:00

16 lines
428 B
Ruby

require 'test_helper'
class FormHelperTest < ActionView::TestCase
test 'yields an instance of FormBuilder' do
simple_form_for :user do |f|
assert f.instance_of?(SimpleForm::FormBuilder)
end
end
test 'pass options to simple form' do
simple_form_for :user, :url => '/account', :html => { :id => 'my_form' } do |f| end
assert_select 'form#my_form'
assert_select 'form[action=/account]'
end
end