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

14 lines
430 B
Ruby

# encoding: UTF-8
require 'test_helper'
class FileInputTest < ActionView::TestCase
test 'input should generate a file field' do
with_input_for @user, :name, :file
assert_select 'input#user_name[type=file]'
end
test "input should generate a file field that doesn't accept placeholder" do
with_input_for @user, :name, :file, :placeholder => 'Put in some text'
assert_no_select 'input[placeholder]'
end
end