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/inputs/boolean_input_test.rb
2011-09-08 16:04:36 +02:00

10 lines
No EOL
339 B
Ruby

# encoding: UTF-8
require 'test_helper'
class BooleanInputTest < ActionView::TestCase
test 'input should generate a checkbox by default for boolean attributes' do
with_input_for @user, :active, :boolean
assert_select 'input[type=checkbox].boolean#user_active'
assert_select 'input.boolean + label.boolean.optional'
end
end