module Fivemat
Public Class Methods
cucumber3?()
click to toggle source
# File lib/fivemat.rb, line 11 def cucumber3? defined?(::Cucumber) && ::Cucumber::VERSION >= '3' end
new(config)
click to toggle source
# File lib/fivemat.rb, line 18 def initialize(config) end
new(*args)
click to toggle source
# File lib/fivemat.rb, line 44 def self.new(*args) case args.size when 0 then MiniTest::Unit when 1 then if args.first.class.to_s == "Cucumber::Configuration" Cucumber3 elsif rspec3? RSpec3 else RSpec end when 2 then Spec when 3 Cucumber else raise ArgumentError end.new(*args) end
rspec3?()
click to toggle source
# File lib/fivemat.rb, line 25 def rspec3? defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0' end
Private Instance Methods
cucumber3?()
click to toggle source
# File lib/fivemat.rb, line 11 def cucumber3? defined?(::Cucumber) && ::Cucumber::VERSION >= '3' end
rspec3?()
click to toggle source
# File lib/fivemat.rb, line 25 def rspec3? defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0' end