Sha256: 56579fb597ab70f1aa0928d55304823759559bf97e981de3f258d92122d7137f

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

require 'fivemat/elapsed_time'

module Fivemat
  autoload :Cucumber, 'fivemat/cucumber'
  autoload :MiniTest, 'fivemat/minitest/unit'
  autoload :RSpec, 'fivemat/rspec'
  autoload :Spec, 'fivemat/spec'

  def self.new(*args)
    case args.size
    when 0 then MiniTest::Unit
    when 1 then RSpec
    when 2 then Spec
    when 3 then Cucumber
    else
      raise ArgumentError
    end.new(*args)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fivemat-1.2.1 lib/fivemat.rb
fivemat-1.2.0 lib/fivemat.rb