Sha256: 36d7e9c9d388ce64a0d724a8af52ffd566497908c02a8dd09c57b7e37de6aa86

Contents?: true

Size: 532 Bytes

Versions: 9

Compression:

Stored size: 532 Bytes

Contents

module Sniff
  extend self

  def root 
    File.join(File.dirname(__FILE__), '..')
  end

  def init(local_root, options = {})
    options[:earth] ||= :none

    Sniff::Database.init local_root, options

    if defined?(Cucumber)
      step_definitions = Dir.glob File.join(File.dirname(__FILE__), 'test_support', 'step_definitions', '**', '*.rb')
      step_definitions.each { |definition| require definition }
    end
  end
end

require 'earth'

$:.unshift File.dirname(__FILE__)
require 'sniff/database'
require 'sniff/emitter'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sniff-0.0.15 lib/sniff.rb
sniff-0.0.14 lib/sniff.rb
sniff-0.0.13 lib/sniff.rb
sniff-0.0.12 lib/sniff.rb
sniff-0.0.11 lib/sniff.rb
sniff-0.0.10 lib/sniff.rb
sniff-0.0.9 lib/sniff.rb
sniff-0.0.8 lib/sniff.rb
sniff-0.0.7 lib/sniff.rb