Merge pull request #444 from robhanlon22/patch-1

Zeitwerk fixes
This commit is contained in:
Nikita Shilnikov 2022-08-11 12:38:19 +03:00 committed by GitHub
commit a0a4e923f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -36,7 +36,10 @@ module Dry
loader.push_dir(root)
loader.ignore(
"#{root}/dry-types.rb",
"#{root}/dry/types/extensions",
"#{root}/dry/types/spec/types.rb",
"#{root}/dry/types/{#{%w[
compat
constraints
core
errors

View File

@ -1,6 +1,14 @@
# frozen_string_literal: true
RSpec.describe Dry::Types do
describe ".loader" do
it "can eagerly load this library" do
Dry::Types.loader.eager_load
ensure
Dry::Types.loader.unload
end
end
describe ".register" do
it "registers a new type constructor" do
module Test