Sha256: f0efce2d1bdf23821aea0ac307a77f0a3e1b0a5f2ae8e9842c0eb4d487c258a0
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
require 'abstract_unit' class HTMLTest < ActiveSupport::TestCase test 'formats returns symbol for recognized MIME type' do assert_equal [:html], ActionView::Template::HTML.new('', :html).formats end test 'formats returns string for recognized MIME type when MIME does not have symbol' do foo = Mime::Type.lookup("foo") assert_nil foo.to_sym assert_equal ['foo'], ActionView::Template::HTML.new('', foo).formats end test 'formats returns string for unknown MIME type' do assert_equal ['foo'], ActionView::Template::HTML.new('', 'foo').formats end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/actionview/test/template/html_test.rb |
activejob-lock-0.0.1 | rails/actionview/test/template/html_test.rb |