test/formhelpers_test.rb in twilson63-sinatra-formhelpers-0.1.1 vs test/formhelpers_test.rb in twilson63-sinatra-formhelpers-0.2.0

- old
+ new

@@ -55,9 +55,25 @@ get '/' assert_equal "<input name='person[first_name]' id='person_first_name' value='' type='text' />\n", body end end + describe 'formhelpers text with single arg' do + setup do + mock_app { + helpers Sinatra::FormHelpers + get '/' do + haml "= text :q" + end + } + end + + it 'renders an input tag type text with single arg' do + get '/' + assert_equal "<input name='q' id='q' value='' type='text' />\n", body + end + end + describe 'formhelpers text with @params' do setup do mock_app { helpers Sinatra::FormHelpers get '/' do