Export all module members from the top level

This commit is contained in:
Aleks Rūtiņš 2024-09-09 06:27:52 -04:00
parent 88e0c3366a
commit 334e9ae041
2 changed files with 12 additions and 2 deletions

View file

@ -1,7 +1,9 @@
# frozen_string_literal: true
require_relative "phlexite/version"
module Phlexite
class Error < StandardError; end
end
require_relative "phlexite/version"
require_relative "phlexite/router"
require_relative "phlexite/site"

View file

@ -10,4 +10,12 @@ class TestPhlexite < Minitest::Test
def test_it_does_something_useful
assert true
end
def test_that_site_is_defined
assert ::Phlexite::Site != nil
end
def test_that_router_is_defined
assert ::Phlexite::Router != nil
end
end