Skip to content

when $VERBOSE is enabled prints no warnings fails because of Source locally installed gems is ignoring message #888

@yahonda

Description

@yahonda

Steps to reproduce

  1. Install Ruby 3.4.0dev
  2. Run these commands
git clone https://github.com/rails/thor
cd thor
bundle install
bundle exec rspec ./spec/no_warnings_spec.rb:4

Expected behavior

It should pass.

Actual behavior

It fails as follows.

$ ruby -v
ruby 3.4.0dev (2024-10-26T13:20:34Z master 484ea00d2e) +PRISM [x86_64-linux]
$ bundle exec rspec ./spec/no_warnings_spec.rb:4
Source locally installed gems is ignoring #<Bundler::StubSpecification name=prism version=1.0.0 platform=ruby> because it is missing extensions
Source locally installed gems is ignoring #<Bundler::StubSpecification name=json version=2.7.2 platform=ruby> because it is missing extensions
Source locally installed gems is ignoring #<Bundler::StubSpecification name=google-protobuf version=4.27.0 platform=ruby> because it is missing extensions
Source locally installed gems is ignoring #<Bundler::StubSpecification name=cgi version=0.4.1 platform=ruby> because it is missing extensions
Run options: include {locations: {"./spec/no_warnings_spec.rb" => [4]}}
F

Failures:

  1) when $VERBOSE is enabled prints no warnings
     Failure/Error: expect(err).to be_empty
       expected `"Source locally installed gems is ignoring #<Bundler::StubSpecification name=prism version=1.0.0 plat...Bundler::StubSpecification name=cgi version=0.4.1 platform=ruby> because it is missing extensions\n".empty?` to be truthy, got false
     # ./spec/no_warnings_spec.rb:8:in 'block (2 levels) in <top (required)>'

Finished in 0.16809 seconds (files took 0.05484 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/no_warnings_spec.rb:4 # when $VERBOSE is enabled prints no warnings

$

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