17 lines
428 B
Ruby
17 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
|