class Specific::Loader
Attributes
spec[R]
Public Class Methods
new(path = 'features')
click to toggle source
# File lib/specific/loader.rb, line 5 def initialize(path = 'features') base_path = File.join(Dir.pwd, path) @path = File.join(base_path, '**', '*.feature') @spec = Specific::Base.new(base_path) end
Public Instance Methods
run()
click to toggle source
# File lib/specific/loader.rb, line 12 def run Dir[@path].each do |feature_file| feature_definition = File.read(feature_file) ast = GherkinRuby.parse(feature_definition) processor = Specific::Processor::Gherkin.new(@spec) processor.execute(ast) end end