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

[Patch] Failing test spec/auth_token_file_spec.rb with Ruby 2.7: NameError: uninitialized constant RSpec::Support::Differ #313

Open
dleidert opened this issue Feb 26, 2020 · 1 comment

Comments

@dleidert
Copy link

The test spec/auth_token_file_spec.rb is failing with these errors with Ruby 2.7:

Failures:

  1) Gist::AuthTokenFile::filename with default GITHUB_URL is ~/.gist
     Failure/Error: subject.filename.should be filename

     RuntimeError:
       CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true
     # ./spec/auth_token_file_spec.rb:14:in `block (4 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # NameError:
     #   uninitialized constant RSpec::Support::Differ
     #   ./spec/auth_token_file_spec.rb:14:in `block (4 levels) in <top (required)>'

  2) Gist::AuthTokenFile::filename with custom GITHUB_URL is ~/.gist.{custom_github_url}
     Failure/Error: subject.filename.should be filename

     NameError:
       uninitialized constant RSpec::Support::Differ
     # ./spec/auth_token_file_spec.rb:26:in `block (4 levels) in <top (required)>'

The patch is fairly simple:
https://salsa.debian.org/ruby-team/gist/-/blob/master/debian/patches/mochafix

@pvalena
Copy link
Contributor

pvalena commented Jun 23, 2020

I've encountered the failures as well, as I have some additional ones,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants