Sha256: 78826f4fc2351cae180720064716f0ac7f56a033da25784bb7a1e62d4f066704
Contents?: true
Size: 717 Bytes
Versions: 38
Compression:
Stored size: 717 Bytes
Contents
require "test_helper" class Post attr_accessor :author end class FormHelperTest < ActionView::TestCase def test_text_field_tag assert_match(/autocomplete=\"some\/path\"/, text_field_tag('field_name', '', :autocomplete => 'some/path')) end def test_text_field post = Post.new assert_match(/autocomplete=\"some\/path\"/, text_field(:post, :author, :autocomplete => 'some/path')) end def test_autocomplete_field_tag assert_match(/data-autocomplete=\"some\/path\"/, autocomplete_field_tag('field_name', '', 'some/path')) end def test_autocomplete_field post= Post.new assert_match(/data-autocomplete=\"some\/path\"/, autocomplete_field(:post, :author, 'some/path')) end end
Version data entries
38 entries across 38 versions & 4 rubygems