Class: Spinach::FeatureSteps
- Inherits:
-
Object
- Object
- Spinach::FeatureSteps
- Includes:
- MiniTest::Assertions, RSpec::Matchers, RSpec::Mocks::ExampleMethods, DSL
- Defined in:
- lib/spinach/feature_steps.rb,
lib/spinach/capybara.rb,
lib/spinach/rspec/mocks.rb,
lib/spinach/frameworks/minitest.rb
Overview
The feature class is the class which all the features must inherit from.
Defined Under Namespace
Modules: Capybara
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Returns the value of attribute assertions.
Class Method Summary collapse
-
.include(*args) ⇒ Object
Exposes the include method publicly so you can add more modules to it due its plastic nature.
- .include_private ⇒ Object
-
.inherited(base) ⇒ Object
Registers the feature class for later use.
Instance Method Summary collapse
- #after_each ⇒ Object
- #before_each ⇒ Object
-
#initialize(*args) ⇒ FeatureSteps
constructor
A new instance of FeatureSteps.
Methods included from DSL
Constructor Details
#initialize(*args) ⇒ FeatureSteps
Returns a new instance of FeatureSteps.
9 10 11 12 |
# File 'lib/spinach/frameworks/minitest.rb', line 9 def initialize(*args) super *args self.assertions = 0 end |
Instance Attribute Details
#assertions ⇒ Object
Returns the value of attribute assertions.
7 8 9 |
# File 'lib/spinach/frameworks/minitest.rb', line 7 def assertions @assertions end |
Class Method Details
.include(*args) ⇒ Object
Exposes the include method publicly so you can add more modules to it due its plastic nature.
25 26 27 |
# File 'lib/spinach/feature_steps.rb', line 25 def include(*args) include_private(*args) end |
.include_private ⇒ Object
18 |
# File 'lib/spinach/feature_steps.rb', line 18 alias_method :include_private, :include |
.inherited(base) ⇒ Object
Registers the feature class for later use.
14 15 16 |
# File 'lib/spinach/feature_steps.rb', line 14 def inherited(base) Spinach.feature_steps << base end |
Instance Method Details
#after_each ⇒ Object
31 |
# File 'lib/spinach/feature_steps.rb', line 31 def after_each; end |
#before_each ⇒ Object
30 |
# File 'lib/spinach/feature_steps.rb', line 30 def before_each; end |