Sha256: 3a144507c9b12a54bd789d10fb73beb1a627f2f640eb657f0aae317eec300eec

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

require 'test_helper'
class TestHarness
  class Given
    include TestHarness::TestHelper

    Dir.glob(Rails.root.join(TestHarness.autoload_path, 'given/*.rb')).each do |file|
      component =  File.basename(file, '.rb')
      require "%s/given/%s" % [TestHarness.autoload_path, component]
      klass = ("TestHarness::Given::%s" % File.basename(file, '.rb').camelize).constantize
      include klass
    end
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
test-harness-0.4.6 lib/given.rb
test-harness-0.4.5 lib/given.rb
test-harness-0.4.4 lib/given.rb
test-harness-0.4.3 lib/given.rb