module Cucumber::Runtime::InjectableFeatures

Without this module, Runtime#features would load all features specified on the command line. We want to avoid that and load only the features each worker needs ourselves, so we override the default behavior to let us put our iterator in place without loading any features directly.

Public Instance Methods

features() click to toggle source
Calls superclass method
# File lib/test_queue/runner/cucumber.rb, line 25
def features
  return @features if defined?(@features)
  super
end
features=(iterator) click to toggle source
# File lib/test_queue/runner/cucumber.rb, line 30
def features=(iterator)
  @features = ::Cucumber::Ast::Features.new
  @features.features = iterator
end