Class: Cucumber::ResetableRuntime
- Inherits:
-
Runtime
- Object
- Runtime
- Cucumber::ResetableRuntime
- Defined in:
- lib/nitra/ext/cucumber.rb
Instance Method Summary collapse
-
#features ⇒ Object
Cucumber > 1.1.0 memoizes @loader which means we can’t load in new files.
-
#reset ⇒ Object
Cucumber lacks a reset hook like the one Rspec has so we need to patch one in…
Instance Method Details
#features ⇒ Object
Cucumber > 1.1.0 memoizes @loader which means we can’t load in new files. Patch it back to how it used to work.
24 25 26 27 28 29 30 |
# File 'lib/nitra/ext/cucumber.rb', line 24 def features @loader = Runtime::FeaturesLoader.new( @configuration.feature_files, @configuration.filters, @configuration.tag_expression) @loader.features end |
#reset ⇒ Object
Cucumber lacks a reset hook like the one Rspec has so we need to patch one in… Call this after configure so that the correct configuration is used to create the result set.
18 19 20 |
# File 'lib/nitra/ext/cucumber.rb', line 18 def reset @results = Results.new(nil) end |