Sha256: dc2407fcc2bbbf150059c8285a653d528a4902b45dd633f3801764c5adae29d1
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
require 'test_helper' class Tag attr_accessor :name end class FormHelperTest < ActionView::TestCase context "autosuggest_field" do should "render properly" do output = autosuggest_field(:tag, :name, 'some/path') assert_match /class=\" autosuggest_tag_name\"/, output assert_match /\$\('.autosuggest_tag_name'\)/, output end end context "autosuggest_field_tag" do should "render properly" do #raise "test in browser" #raise "fix the params['tag'] issue" output = autosuggest_field_tag(:some_name, '', 'some/path') assert_match /class=\" autosuggest_some_name\"/, output assert_match /\$\('.autosuggest_some_name'\)/, output end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
autosuggest-rb-0.1.6 | test/form_helper_test.rb |
autosuggest-rb-0.1.5 | test/form_helper_test.rb |
autosuggest-rb-0.1.4 | test/form_helper_test.rb |