Module: Specjour::Cucumber::Preloader

Defined in:
lib/specjour/cucumber/preloader.rb

Class Method Summary collapse

Class Method Details

.loadObject



4
5
6
7
8
9
10
11
12
# File 'lib/specjour/cucumber/preloader.rb', line 4

def self.load
  $stdout.puts "Loading Cucumber Environment"
  require 'cucumber' unless defined?(::Cucumber::Cli)
  configuration = ::Cucumber::Cli::Configuration.new
  configuration.parse! []
  runtime = ::Cucumber::Runtime.new(configuration)
  runtime.send :load_step_definitions
  Cucumber.runtime = runtime
end