Sha256: c7dc832fb30ba5fb62ff19dedd968e59f211742d0b1dc604e8641299b5aafb01

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

# -*- coding: utf-8 -*-
require 'minitest/autorun'
require 'simplecov'
SimpleCov.start

describe Fab do

  let(:fab){ Fab.new }

  describe "#content_type" do      

    before do
      @x = fab.content_type
    end

    it "is a string" do
      @x.must_be_kind_of String
    end

    it "has a slash" do
      @x.must_match /\//
    end

  end

  describe "#content_type_part" do      

    before do
      @x = fab.content_type_part
    end

    it "is a string" do
      @x.must_be_kind_of String
    end

    it "does not have a slash" do
      @x.wont_match /\//
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_fab-1.0.2 test/sixarm_ruby_fab_test/mime_test.rb
sixarm_ruby_fab-1.0.1 test/sixarm_ruby_fab_test/mime_test.rb
sixarm_ruby_fab-1.0.0 test/sixarm_ruby_fab_test/mime_test.rb