Sha256: 4f8e14ac0f111405c16914e907e19287f83a17efab8a796b7652002115765906

Contents?: true

Size: 479 Bytes

Versions: 9

Compression:

Stored size: 479 Bytes

Contents

%w{features feature scenario step given_scenario table top_down_visitor}.each{|f| require "cucumber/tree/#{f}"}
require 'cucumber/core_ext/proc'
require 'cucumber/core_ext/string'

module Cucumber
  module Tree
    def Feature(header, &proc)
      feature = Feature.new("Feature: " + header, &proc)
      feature.file, _, _ = *caller[0].split(':')
      features << feature
      feature
    end

    def features #:nodoc:
      @features ||= Tree::Features.new
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 lib/cucumber/tree.rb
aslakhellesoy-cucumber-0.1.9 lib/cucumber/tree.rb
elight-cucumber-0.1.9 lib/cucumber/tree.rb
jeffrafter-cucumber-0.1.10 lib/cucumber/tree.rb
cucumber-0.1.10 lib/cucumber/tree.rb
cucumber-0.1.6 lib/cucumber/tree.rb
cucumber-0.1.8 lib/cucumber/tree.rb
cucumber-0.1.7 lib/cucumber/tree.rb
cucumber-0.1.9 lib/cucumber/tree.rb