defunkt / gist

Potentially the best command line gister.
http://defunkt.io/gist/
MIT License
3.8k stars 340 forks source link

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

Open dleidert opened 4 years ago

dleidert commented 4 years ago

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 commented 4 years ago

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