File: smoke-test

package info (click to toggle)
ruby-mime-types 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: ruby: 1,875; makefile: 6
file content (14 lines) | stat: -rwxr-xr-x 256 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/ruby

require 'test/unit'
require 'mime/types'

class SmokeTest < Test::Unit::TestCase

  def test_text_plain
    type = MIME::Types['text/plain'].first
    assert_equal 'text', type.media_type
    assert_equal 'plain', type.sub_type
  end

end