Closed wildmaples closed 9 months ago
Just a question but when we require this gem and use irb, we see this warning:
irb
DEPRECATION WARNING: irb: warn: can't alias context from irb_context.
We realized it's because context is being added at the top level here: https://github.com/rspec/rspec-core/blob/main/lib/rspec/core/dsl.rb#L84
There isn't really a problem with this behaviour but just curious to know if it is needed as context used in a describe block.
context
describe
If you turn off monkey patching with https://rspec.info/documentation/3.13/rspec-core/RSpec/Core/Configuration.html#disable_monkey_patching!-instance_method this should go away
(closing as duplicate of #2776)
Subject of the issue
Just a question but when we require this gem and use
irb
, we see this warning:We realized it's because context is being added at the top level here: https://github.com/rspec/rspec-core/blob/main/lib/rspec/core/dsl.rb#L84
Your environment
Steps to reproduce
Expected behavior
There isn't really a problem with this behaviour but just curious to know if it is needed as
context
used in adescribe
block.Actual behavior