commit
a0a4e923f6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue