Sha256: a83a569951237dc8e8ac564482ec192d4ee023cff383cbe33ac678c80fb0fa06
Contents?: true
Size: 467 Bytes
Versions: 3
Compression:
Stored size: 467 Bytes
Contents
require 'test_helper' class TagsTest < ActionView::TestCase test 'tags hyphens' do div = tag(:div, class: 'the_class', id: 'test_id') assert div.include?('class="the-class"') assert div.include?('id="test-id"') end test 'forms hyphens' do form = form_for(:test, url: 'http://test.com') do |f| f.text_field :id, class: 'the_class' end assert form.include?('class="the-class"') assert form.include?('id="test-id"') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hyphenify-0.1.2 | test/tags_test.rb |
hyphenify-0.1.1 | test/tags_test.rb |
hyphenify-0.1.0 | test/tags_test.rb |