rspec testsuite failure newly with ruby3.4.0dev
Author: mtasakaCreated Dec 10, 2024Updated Dec 10, 2024
ruby 3.4 is to be released on 2024-Dec-25,
and trying with ruby 3.4.0dev (2024-12-10 master cfc2b21a05) +PRISM [x86_64-linux]
https://github.com/ruby/ruby/commit/cfc2b21a05ab1a6602a70331d895924851a527e9
guard git head https://github.com/guard/guard/commit/d9def79b1a017f62939136bb7fafedae6f9eb512 causes additional rspec test failure compared with https://github.com/guard/guard/issues/996 as:
6) Guard::Plugin#hook notifies the hooks
Failure/Error: self.class.notify(self, hook_name.to_sym, *args)
#<Guard::Plugin (class)> received :notify with unexpected arguments
expected: (#<Guard::Dummy:14240 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine... @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>, :run_all_begin)
got: (#<Guard::Dummy:14240 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine... @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>, :_begin)
Diff:
@@ -1,3 +1,3 @@
[#<Guard::Dummy:14240 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine:14256 @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>,
- :run_all_begin]
+ :_begin]
# ./lib/guard/plugin.rb:127:in 'Guard::Plugin#hook'
# ./spec/lib/guard/plugin_spec.rb:180:in 'Guard::Dummy#run_all'
# ./spec/lib/guard/plugin_spec.rb:189:in 'block (3 levels) in <top (required)>'
7) Guard::Plugin#hook accepts extra arguments
Failure/Error: self.class.notify(self, hook_name.to_sym, *args)
#<Guard::Plugin (class)> received :notify with unexpected arguments
expected: (#<Guard::Dummy:14280 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine... @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>, :stop_begin, "args")
got: (#<Guard::Dummy:14280 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine... @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>, :_begin, "args")
Diff:
@@ -1,4 +1,4 @@
[#<Guard::Dummy:14280 @name=dummy @group= @watchers=[] @callbacks=[] @options={engine: #<Guard::Engine:14296 @options={watchdirs: "/builddir/build/GIT/guard", inline: "guard :dummy", no_interactions: true}>}>,
- :stop_begin,
+ :_begin,
"args"]
# ./lib/guard/plugin.rb:127:in 'Guard::Plugin#hook'
# ./spec/lib/guard/plugin_spec.rb:210:in 'Guard::Dummy#stop'
# ./spec/lib/guard/plugin_spec.rb:222:in 'block (3 levels) in <top (required)>'Source: guard/guard