test/support/tests_autoloading.rb in truck-0.8.0 vs test/support/tests_autoloading.rb in truck-0.8.1
- old
+ new
@@ -1,8 +1,9 @@
module TestsAutoloading
def setup
@foo = Truck.define_context :Foo, root: "/foo"
@bar = Truck.define_context :Bar, root: '/bar', parent: :Foo
+ @multi = Truck.define_context :MultipleAutoloadPaths, root: "/", autoload_paths: %w(foo bar)
Truck.boot!
assert_nil Truck::Autoloader.current_autoloader
end
def teardown