require File.dirname(__FILE__) + '/../test_helper'
class FormHelperTest < ActionView::TestCase
class Person
attr_accessor :name,
:agree,
:picture,
:secret
end
def setup
@person = Person.new
end
def test_should_style_text_field
assert_equal '', text_field(:person, :name)
end
def test_should_style_password_field
assert_equal '', password_field(:person, :secret)
end
def test_should_not_style_hidden_field
assert_equal '', hidden_field(:person, :name)
end
def test_should_style_file_field
assert_equal '', file_field(:person, :picture)
end
def test_should_style_check_box
expected =
'' +
''
assert_equal expected, check_box(:person, :agree)
end
def test_should_style_radio_button
assert_equal '', radio_button(:person, :agree, 1)
end
end