Class: Cucumber::Rake::Task::InProcessCucumberRunner
- Inherits:
-
Object
- Object
- Cucumber::Rake::Task::InProcessCucumberRunner
- Includes:
- Rake::DSL
- Defined in:
- lib/cucumber/rake/task.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(libs, cucumber_opts, feature_files) ⇒ InProcessCucumberRunner
constructor
A new instance of InProcessCucumberRunner.
- #run ⇒ Object
Constructor Details
#initialize(libs, cucumber_opts, feature_files) ⇒ InProcessCucumberRunner
Returns a new instance of InProcessCucumberRunner.
34 35 36 37 38 39 40 41 42 |
# File 'lib/cucumber/rake/task.rb', line 34 def initialize(libs, cucumber_opts, feature_files) raise 'libs must be an Array when running in-process' unless libs.instance_of? Array libs.reverse_each { |lib| $LOAD_PATH.unshift(lib) } @args = ( cucumber_opts + feature_files ).flatten.compact end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
32 33 34 |
# File 'lib/cucumber/rake/task.rb', line 32 def args @args end |