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