Sha256: 940c7f3a3d9d76cfe8fe1785f495f1b698bf4d3b11bfdd2322d473d76c472bd1

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'test_helper'

class FormBuilderTest < ActionView::TestCase  
  
  test 'text_field div wrapper should have data-role=fieldcontain' do
    test = jq_form_for @user do |f|
      f.text_field :name, :description => 'Hello World'
    end
    assert_match /data-role="fieldcontain"/, test
    assert_match /Hello World/, test
  end  
    
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jqmobile_helpers-0.0.2 test/form_helper_test.rb
jqmobile_helpers-0.0.1 test/form_helper_test.rb