Module: Turnip::RSpec
- Defined in:
- lib/rutabaga/util.rb,
lib/rutabaga/turnip.rb,
lib/rutabaga/no_turnip.rb
Overview
Monkey patch for Turnip to not have to copy loads of code
Defined Under Namespace
Modules: Loader
Class Method Summary collapse
Class Method Details
.rutabaga_run(feature_file, example_group_class) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rutabaga/util.rb', line 7 def self.rutabaga_run(feature_file, example_group_class) features = Rutabaga::Util.build_scenario_groups(feature_file) features.each do |feature| instance_eval <<-EOS, feature_file, feature.line describe = example_group_class.describe feature.name, feature.metadata_hash if Turnip::VERSION[0].to_i >= 4 run_scenario_group(describe, feature, feature_file) else # run against turnip 3 run_feature(describe, feature, feature_file) end EOS end end |