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

uninitialized constant MiniTest (NameError) #29

Open
go2null opened this issue Dec 19, 2023 · 1 comment
Open

uninitialized constant MiniTest (NameError) #29

go2null opened this issue Dec 19, 2023 · 1 comment

Comments

@go2null
Copy link

go2null commented Dec 19, 2023

Saw this gem listed as a Known Extension, decided to try it and got the following error

C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minispec-metadata-2.0.0/lib/core_extensions.rb:3:in `<top (required)>': uninitialized constant MiniTest (NameError)

if MiniTest.const_defined?(:Unit)
   ^^^^^^^^
Did you mean?  Minitest
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minispec-metadata-2.0.0/lib/minispec-metadata.rb:2:in `require_relative'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minispec-metadata-2.0.0/lib/minispec-metadata.rb:2:in `<top (required)>'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minitest-vcr-1.4.0/lib/minitest-vcr/spec.rb:2:in `require'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minitest-vcr-1.4.0/lib/minitest-vcr/spec.rb:2:in `<top (required)>'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minitest-vcr-1.4.0/lib/minitest-vcr.rb:2:in `require'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/minitest-vcr-1.4.0/lib/minitest-vcr.rb:2:in `<top (required)>'
        from C:/Users/USER/src/gitlab-report/spec/spec_helper.rb:13:in `require'
        from C:/Users/USER/src/gitlab-report/spec/spec_helper.rb:13:in `<top (required)>'
        from C:/Users/USER/src/gitlab-report/spec/gitlab_report/csv_report_spec.rb:3:in `require_relative'
        from C:/Users/USER/src/gitlab-report/spec/gitlab_report/csv_report_spec.rb:3:in `<top (required)>'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in `require'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in `block in <main>'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in `select'
        from C:/Users/USER/opt/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in `<main>'
rake aborted!
@go2null
Copy link
Author

go2null commented Dec 19, 2023

Excerpt from Gemfile.lock

    minispec-metadata (2.0.0)
      minitest
    minitest (5.20.0)
    minitest-vcr (1.4.0)
      minispec-metadata (~> 2.0)
      minitest (>= 4.7.5)
      vcr (>= 2.9)
    vcr (6.2.0)

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

1 participant