Module: Turnip::RSpec
- Defined in:
- lib/turnip/rspec.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.run(feature_file) ⇒ Object
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/turnip/rspec.rb', line 66 def run(feature_file) feature = Turnip::Builder.build(feature_file) return nil if feature.nil? instance_eval "context = ::RSpec.describe feature.name, feature.metadata_hash\nrun_scenario_group(context, feature, feature_file)\n", feature_file, feature.line end |