test/integration/autoloading_test.rb in truck-0.8.4 vs test/integration/autoloading_test.rb in truck-0.8.6

- old
+ new

@@ -42,6 +42,14 @@ end def test_reference_constants_in_included_class assert_equal 'hello from B::BA', MyApp::IncludesFoo.message end + + def test_reference_constants_in_external_class_that_includes_module + TOPLEVEL_BINDING.eval File.read "/ext.rb" + + assert_equal 'hello from A', MyExtClass.new.message + ensure + Object.send :remove_const, :MyExtClass + end end