Class: GreenPepper::HeaderSuccess
- Inherits:
-
ExampleResult
- Object
- ExampleResult
- GreenPepper::HeaderSuccess
- Defined in:
- lib/greenpepper/writer/freetextresult.rb
Instance Attribute Summary
Attributes inherited from ExampleResult
Instance Method Summary collapse
-
#initialize(fixture_name) ⇒ HeaderSuccess
constructor
A new instance of HeaderSuccess.
- #success? ⇒ Boolean
- #write(action) ⇒ Object
Methods inherited from ExampleResult
#error?, #failure?, #ignored?, #update_stats
Constructor Details
#initialize(fixture_name) ⇒ HeaderSuccess
Returns a new instance of HeaderSuccess.
168 169 170 |
# File 'lib/greenpepper/writer/freetextresult.rb', line 168 def initialize(fixture_name) @fixture_name = fixture_name end |
Instance Method Details
#success? ⇒ Boolean
176 177 178 |
# File 'lib/greenpepper/writer/freetextresult.rb', line 176 def success? true end |
#write(action) ⇒ Object
172 173 174 |
# File 'lib/greenpepper/writer/freetextresult.rb', line 172 def write(action) "Scenario: #{@fixture_name}" end |