Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load forwardable expressly #204

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Load forwardable expressly #204

merged 1 commit into from
Aug 24, 2023

Commits on Aug 21, 2023

  1. Load forwardable expressly

    Sidekiq v6 does not load forwardable by `require 'sidekiq'; require 'sidekiq/testing'`
    Therefore, depending on the library situation used, a `NameError` will be raised.
    
    ```
    $ BUNDLE_GEMFILE=gemfiles/sidekiq6_5_rails7.gemfile bundle exec ruby -I lib -r rspec-sidekiq -e 1
    /rspec-sidekiq/lib/rspec/sidekiq/matchers/base.rb:85:in `<class:EnqueuedJob>': uninitialized constant RSpec::Sidekiq::Matchers::EnqueuedJob::Forwardable (NameError)
    
            extend Forwardable
                   ^^^^^^^^^^^
    ```
    
    Explicitly loading forwardable solves the problem.
    ksss committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    5aef2ed View commit details
    Browse the repository at this point in the history