Class: Cucumber::Rake::FeatureTask
- Defined in:
- lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb
Constant Summary
Constants inherited from Task
Instance Attribute Summary
Attributes inherited from Task
#cucumber_opts, #feature_list, #feature_pattern, #libs, #rcov, #rcov_opts, #step_list, #step_pattern
Instance Method Summary collapse
- #define_task ⇒ Object
-
#feature_files(task_arguments) ⇒ Object
:nodoc:.
-
#initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") ⇒ FeatureTask
constructor
A new instance of FeatureTask.
Methods inherited from Task
#arguments_for_ruby_execution, #step_files
Constructor Details
#initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") ⇒ FeatureTask
Returns a new instance of FeatureTask.
83 84 85 |
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb', line 83 def initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") super(task_name, desc) end |
Instance Method Details
#define_task ⇒ Object
87 88 89 90 91 92 |
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb', line 87 def define_task desc @desc task @task_name, :feature_name do |t, args| ruby(arguments_for_ruby_execution(args).join(" ")) # ruby(*args) is broken on Windows end end |
#feature_files(task_arguments) ⇒ Object
:nodoc:
94 95 96 |
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb', line 94 def feature_files(task_arguments) # :nodoc: FileList[File.join("features", "**", "#{task_arguments[:feature_name]}.feature")] end |