Sha256: 577a78cb4120caf0f8d0dc0265d58d892d7f9bab3d6754f42cc654176479f857

Contents?: true

Size: 682 Bytes

Versions: 11

Compression:

Stored size: 682 Bytes

Contents

unless defined?(SUPPORT_DIR)
  in_features_dir = caller.select { |path| path =~ /features/ }.first

  if in_features_dir
    features_dir = in_features_dir.split('/')

    2.times { features_dir.pop }

    SUPPORT_DIR = File.join(features_dir,'support')
  end
end

require_relative 'refinements'
require_relative 'config'
require_relative 'errors/ambigious'

module Locator

  _dir = 'cucumber/pickles/locator/'

  autoload :Index, _dir + 'index'
  autoload :Equal, _dir + 'equal'

end

module Helpers

  _dir = 'cucumber/pickles/helpers/'

  autoload :Main, _dir + 'main'
  autoload :Regex, _dir + 'regex'

end

module Pickles

  extend  Helpers::Main
  include Helpers::Main

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pickles-0.1.10 lib/cucumber/pickles/helpers.rb
pickles-0.1.9 lib/cucumber/pickles/helpers.rb
pickles-0.1.8 lib/cucumber/pickles/helpers.rb
pickles-0.1.7 lib/cucumber/pickles/helpers.rb
pickles-0.1.6 lib/cucumber/pickles/helpers.rb
pickles-0.1.5 lib/cucumber/pickles/helpers.rb
pickles-0.1.4 lib/cucumber/pickles/helpers.rb
pickles-0.1.3 lib/cucumber/pickles/helpers.rb
pickles-0.1.2 lib/cucumber/pickles/helpers.rb
pickles-0.1.1 lib/cucumber/pickles/helpers.rb
pickles-0.1.0 lib/cucumber/pickles/helpers.rb