Sha256: 46996e3ebb40481b5f8fed47b39b1f8e3b55ecc58d3cc025d8eac5e2e97987a4

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

module TestsAutoloading
  def setup
    @foo = Truck.define_context :Foo, root: "/foo"
    @bar = Truck.define_context :Bar, root: '/bar', parent: :Foo
    Truck.boot!
    assert_nil Truck::Autoloader.current_autoloader
  end

  def teardown
    assert_nil Truck::Autoloader.current_autoloader,
      "Each test in this file must clean up after itself"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
truck-0.8.0 test/support/tests_autoloading.rb