module Fivemat
Public Class Methods
new(runtime, path_or_io, options)
click to toggle source
Cucumber 2 detects the formatter API based on initialize arity
# File lib/fivemat.rb, line 11 def initialize(runtime, path_or_io, options) end
new(*args)
click to toggle source
# File lib/fivemat.rb, line 33 def self.new(*args) case args.size when 0 then MiniTest::Unit when 1 then if rspec3? RSpec3 else RSpec end when 2 then Spec when 3 if ::Cucumber::VERSION >= '3' abort "Fivemat does not yet support Cucumber 3" end Cucumber else raise ArgumentError end.new(*args) end
rspec3?()
click to toggle source
# File lib/fivemat.rb, line 14 def rspec3? defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0' end
Private Instance Methods
rspec3?()
click to toggle source
# File lib/fivemat.rb, line 14 def rspec3? defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0' end