Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Requiring rspec before IRB console causes warning #3069

@wildmaples

Description

@wildmaples

Subject of the issue

Just a question but when we require this gem and use irb, we see this warning:

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

Your environment

  • Ruby version: 3.2.2
  • rspec-core version: 3.12.2

Steps to reproduce

  • Require rspec right before booting rails console

Expected behavior

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.

Actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions