Sha256: fe44df3bd08fc4ab5093e120b2c98f2b39647899bbb36d774c6594536572b298

Contents?: true

Size: 802 Bytes

Versions: 2

Compression:

Stored size: 802 Bytes

Contents

require "seatbelt/version"
require 'assert_json'
require 'seatbelt/assert_mail'
require 'seatbelt/assert_content_type'

if defined?(Test)
  class Test::Unit::TestCase
    include Seatbelt::AssertContentType if defined?(ActionController)
    include AssertJson
    include Seatbelt::AssertMail if defined?(ActionMailer)
  end
end

if defined?(Minitest)
  if Minitest::Unit::VERSION[0].to_i < 5
    class Minitest::Unit::TestCase
      include Seatbelt::AssertContentType if defined?(ActionController)
      include AssertJson
      include Seatbelt::AssertMail if defined?(ActionMailer)
    end
  else
    class Minitest::Test
      include Seatbelt::AssertContentType if defined?(ActionController)
      include AssertJson
      include Seatbelt::AssertMail if defined?(ActionMailer)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seatbelt-1.0.0 lib/seatbelt.rb
seatbelt-0.5.0 lib/seatbelt.rb