Sha256: fada36c9b1cfe7775a249e4b43fac1d2dff3e13e50177021ba7e1389d6ec18d4
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require "gherkin" require "gherkin/formatter/tag_count_formatter" require "turnip/version" require "turnip/dsl" require 'rspec' module Turnip autoload :Config, 'turnip/config' autoload :FeatureFile, 'turnip/feature_file' autoload :Loader, 'turnip/loader' autoload :Builder, 'turnip/builder' autoload :StepDefinition, 'turnip/step_definition' autoload :Placeholder, 'turnip/placeholder' autoload :Table, 'turnip/table' autoload :StepLoader, 'turnip/step_loader' autoload :StepModule, 'turnip/step_module' autoload :ScenarioRunner, 'turnip/scenario_runner' autoload :RunnerDSL, 'turnip/runner_dsl' autoload :ScenarioContext, 'turnip/scenario_context' class << self attr_accessor :type def run(feature_file) Turnip::Builder.build(feature_file).features.each do |feature| describe feature.name, feature.metadata_hash do feature.scenarios.each do |scenario| it scenario.name, scenario.metadata_hash do Turnip::ScenarioRunner.new(self).load(Turnip::ScenarioContext.new(feature, scenario)).run end end end end end end end Turnip.type = :turnip RSpec::Core::Configuration.send(:include, Turnip::Loader) RSpec.configure do |config| config.pattern << ",**/*.feature" end self.extend Turnip::DSL
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip-0.3.1 | lib/turnip.rb |
turnip-0.3.0 | lib/turnip.rb |