Describe the bug
When writing specs inside a module, the lookup of monad constants fails.
To Reproduce
require 'dry/monads'
Dry::Monads.load_extensions :rspec
module Namespace
RSpec.describe Object do
specify do
expect(Failure[:invalid]).to be_failure
end
end
end
Fails with:
NameError:
uninitialized constant Namespace::Failure
Expected behavior
Passing specs.