mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
16 lines
428 B
Ruby
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
|