8000 rspec testsuite failure with ruby 3.3 · Issue #996 · guard/guard · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rspec testsuite failure with ruby 3.3 #996

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

Open
mtasaka opened this issue Dec 10, 2024 · 0 comments
Open

rspec testsuite failure with ruby 3.3 #996

mtasaka opened this issue Dec 10, 2024 · 0 comments

Comments

@mtasaka
Copy link
mtasaka commented Dec 10, 2024

Testing with ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux] :
rspec testsuite on guard git head d9def79 causes error as:

$ env LANG=C.utf8 LANGUAGE=C.utf8 rspec -rspec_helper -f d spec

Failures:

  1) Guard::Notifier.notify with multiple parameters notifies
     Failure/Error:
       expect(notifier).to receive(:notify)
         .with("A", priority: 2, image: :failed)
     
       #<InstanceDouble(Notiffany::Notifier) (anonymous)> received :notify with unexpected arguments
         expected: ("A", {:image=>:failed, :priority=>2}) (keyword arguments)
              got: ("A", {:image=>:failed, :priority=>2}) (options hash)
     # ./spec/lib/guard/notifier_spec.rb:64:in `block (4 levels) in <top (required)>'

  2) Guard::Engine#start listener initialization initializes the listener
     Failure/Error:
       expect(Listen).to receive(:to)
         .with("/foo", latency: 2, wait_for_delay: 1).and_return(listener)
     
       Listen received :to with unexpected arguments
         expected: ("/foo", {:latency=>2, :wait_for_delay=>1}) (keyword arguments)
              got: ("/foo", {:latency=>2, :wait_for_delay=>1}) (options hash)
     # ./spec/lib/guard/engine_spec.rb:41:in `block (4 levels) in <top (required)>'

  3) Guard::Interactor#options & #options= options set after interactor is instantiated set the options and initialize a new interactor job
     Failure/Error: @_idle_job ||= _job_klass.new(engine, options)
     
       #<Guard::Jobs::PryWrapper (class)> received :new with unexpected arguments
         expected: (#<Guard::Engine:33820 @options={:watchdirs=>"/builddir/build/GIT/guard", :inline=>"guard :dummy", :no_interactions=>true}>, {:foo=>:bar}) (keyword arguments)
              got: (#<Guard::Engine:33820 @options={:watchdirs=>"/builddir/build/GIT/guard", :inline=>"guard :dummy", :no_interactions=>true}>, {:foo=>:bar}) (options hash)
     # ./lib/guard/interactor.rb:60:in `_idle_job'
     # ./spec/lib/guard/interactor_spec.rb:57:in `block (4 levels) in <top (required)>'

  4) Guard::DslDescriber#list lists the available Guards declared as strings or symbols
     Failure/Error: expect(@output).to eq result
     
       expected: "  +---------+-----------+\n  | Plugin  | Guardfile |\n  +---------+-----------+\n  | Another | ✔    ...en    | ✘        |\n  | More    | ✘        |\n  | Test    | ✔        |\n  +---------+-----------+\n"
            got: "  +---------+-----------+\n  | Plugin  | Guardfile |\n  +---------+-----------+\n  | Another | ✔    ...   | ✘         |\n  | More    | ✘         |\n  | Test    | ✔         |\n  +---------+-----------+\n"
     
       (compared using ==)
     
       Diff:
       @@ -1,9 +1,9 @@
          +---------+-----------+
          | Plugin  | Guardfile |
          +---------+-----------+
       -  | Another | ✔        |
       -  | Even    | ✘        |
       -  | More    | ✘        |
       -  | Test    | ✔        |
       +  | Another | ✔         |
       +  | Even    | ✘         |
       +  | More    | ✘         |
       +  | Test    | ✔         |
          +---------+-----------+
     # ./spec/lib/guard/dsl_describer_spec.rb:56:in `block (3 levels) in <top (required)>'

  5) Guard::DslDescriber.notifiers shows the notifiers and their options
     Failure/Error: expect(@output).to eq result
     
       expected: "  +----------------+-----------+------+--------+-------+\n  | Name           | Available | Used | Op...tle | ✘        | ✘   |        |       |\n  +----------------+-----------+------+--------+-------+\n"
            got: "  +----------------+-----------+------+--------+-------+\n  | Name           | Available | Used | Op...e | ✘         | ✘    |        |       |\n  +----------------+-----------+------+--------+-------+\n"
     
       (compared using ==)
     
       Diff:
     
       @@ -1,8 +1,8 @@
          +----------------+-----------+------+--------+-------+
          | Name           | Available | Used | Option | Value |
          +----------------+-----------+------+--------+-------+
       -  | gntp           | ✔        | ✔   | sticky | true  |
       +  | gntp           | ✔         | ✔    | sticky | true  |
          +----------------+-----------+------+--------+-------+
       -  | terminal_title | ✘        | ✘   |        |       |
       +  | terminal_title | ✘         | ✘    |        |       |
          +----------------+-----------+------+--------+-------+
     # ./spec/lib/guard/dsl_describer_spec.rb:129:in `block (3 levels) in <top (required)>'

  6) Guard::Commands::Scope with a valid Guard group scope sets up the scope with the given scope
     Failure/Error: session.interactor_scopes = scopes
     
       #<Guard::Internals::Session:37320> received :interactor_scopes= with unexpected arguments
         expected: ({:groups=>[:frontend], :plugins=>[]}) (keyword arguments)
              got: ({:groups=>[:frontend], :plugins=>[]}) (options hash)
     # ./lib/guard/commands/scope.rb:36:in `process'
     # ./spec/lib/guard/commands/scope_spec.rb:34:in `block (3 levels) in <top (required)>'

  7) Guard::Commands::Scope with a valid Guard plugin scope runs the :scope= action with the given scope
     Failure/Error: session.interactor_scopes = scopes
     
       #<Guard::Internals::Session:37520> received :interactor_scopes= with unexpected arguments
         expected: ({:groups=>[], :plugins=>[:dummy]}) (keyword arguments)
              got: ({:groups=>[], :plugins=>[:dummy]}) (options hash)
     # ./lib/guard/commands/scope.rb:36:in `process'
     # ./spec/lib/guard/commands/scope_spec.rb:43:in `block (3 levels) in <top (required)>'

Finished in 5.74 seconds (files took 0.69994 seconds to load)
523 examples, 7 failures

Failed examples:

rspec ./spec/lib/guard/notifier_spec.rb:63 # Guard::Notifier.notify with multiple parameters notifies
rspec ./spec/lib/guard/engine_spec.rb:40 # Guard::Engine#start listener initialization initializes the listener
rspec ./spec/lib/guard/interactor_spec.rb:51 # Guard::Interactor#options & #options= options set after interactor is instantiated set the options and initialize a new interactor job
rspec ./spec/lib/guard/dsl_describer_spec.rb:54 # Guard::DslDescriber#list lists the available Guards declared as strings or symbols
rspec ./spec/lib/guard/dsl_describer_spec.rb:127 # Guard::DslDescriber.notifiers shows the notifiers and their options
rspec ./spec/lib/guard/commands/scope_spec.rb:30 # Guard::Commands::Scope with a valid Guard group scope sets up the scope with the given scope
rspec ./spec/lib/guard/commands/scope_spec.rb:39 # Guard::Commands::Scope with a valid Guard plugin scope runs the :scope= action with the given scope

Related: #986

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
0