Skip to content

Commit

Permalink
Stop polluting toplevel unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jun 8, 2019
1 parent 2705bbc commit a054e2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_helper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit a054e2a

Please sign in to comment.