Class: Cucumber::Core::Test::Case
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Case
- Defined in:
- lib/automation_helpers/extensions/cucumber/core/test/case.rb
Overview
Additional useful methods to extend the Cucumber::Core::Test::Case class with
Instance Method Summary collapse
-
#feature_file_name ⇒ String
The file name of the feature being ran (Without the .feature extension).
-
#feature_file_path ⇒ String
The fully qualified location of the feature being ran.
Instance Method Details
#feature_file_name ⇒ String
The file name of the feature being ran (Without the .feature extension)
13 14 15 |
# File 'lib/automation_helpers/extensions/cucumber/core/test/case.rb', line 13 def feature_file_name feature_file_path.split('/').last&.split('.')&.first.to_s end |
#feature_file_path ⇒ String
The fully qualified location of the feature being ran
20 21 22 |
# File 'lib/automation_helpers/extensions/cucumber/core/test/case.rb', line 20 def feature_file_path location.to_s end |