From a054e2ad7964f894fce032737f9a4f0e146700a5 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 8 Jun 2019 16:12:44 +0900 Subject: [PATCH] Stop polluting toplevel unnecessarily --- test/test_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index f6ab18baec..eecc000692 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -54,13 +54,13 @@ class TestApp < Rails::Application MiniTest::Unit::TestCase end -module Declarative - def test(name, &block) - define_method("test_ #{name}", &block) +class Haml::TestCase < BASE_TEST_CLASS + module Declarative + def test(name, &block) + define_method("test_ #{name}", &block) + end end -end -class Haml::TestCase < BASE_TEST_CLASS extend Declarative def render(text, options = {}, base = nil, &block)