Sha256: 49ef0f0e1af10c573346d4e49430220e645b8593afb352ad44590eef08f29ebc
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
require 'test_helper' class ViewTest < ActionView::TestCase test 'tags dashes' 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 dashes' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dashify-4.0.0.1 | test/view_test.rb |
dashify-4.0.0.0 | test/view_test.rb |