Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2 for openSUSE:Factory checked in at 2022-11-18 15:42:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2 (Old) and /work/SRC/openSUSE:Factory/.yast2.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2" Fri Nov 18 15:42:38 2022 rev:544 rq:1033485 version:4.5.19 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2/yast2.changes 2022-10-27 13:54:34.724691889 +0200 +++ /work/SRC/openSUSE:Factory/.yast2.new.1597/yast2.changes 2022-11-18 15:42:42.278343699 +0100 @@ -1,0 +2,6 @@ +Mon Oct 31 13:07:35 UTC 2022 - Martin Vidner <mvid...@suse.com> + +- Fix hash vs keyword arguments in RSpec expectations (bsc#1204871) +- 4.5.19 + +------------------------------------------------------------------- Old: ---- yast2-4.5.18.tar.bz2 New: ---- yast2-4.5.19.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2.spec ++++++ --- /var/tmp/diff_new_pack.uvUXjE/_old 2022-11-18 15:42:42.986346810 +0100 +++ /var/tmp/diff_new_pack.uvUXjE/_new 2022-11-18 15:42:42.990346827 +0100 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.18 +Version: 4.5.19 Release: 0 Summary: YaST2 Main Package ++++++ yast2-4.5.18.tar.bz2 -> yast2-4.5.19.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.18/library/cwm/test/cwm_test.rb new/yast2-4.5.19/library/cwm/test/cwm_test.rb --- old/yast2-4.5.18/library/cwm/test/cwm_test.rb 2022-10-25 17:20:01.000000000 +0200 +++ new/yast2-4.5.19/library/cwm/test/cwm_test.rb 2022-11-04 11:15:57.000000000 +0100 @@ -48,6 +48,7 @@ let(:test_stringterm) { VBox(HBox("w1")) } let(:widget_names) { ["w1", "w2"] } + let(:event) { { "ID" => :my_event_id } } let(:test_widgets) do { "w1" => { @@ -158,9 +159,9 @@ # used by CWMTab and CWM::ReplacePoint describe "#saveWidgets" do it "calls store methods" do - expect(self).to receive(:generic_save).with("w1", "ID" => :event) - expect(self).to receive(:w2_store).with("w2", "ID" => :event) - subject.saveWidgets(run_widgets, "ID" => :event) + expect(self).to receive(:generic_save).with("w1", event) + expect(self).to receive(:w2_store).with("w2", event) + subject.saveWidgets(run_widgets, event) end # used via GetProcessedWidget by yast2-slp-server and yast2 @@ -168,29 +169,29 @@ allow(self).to receive(:generic_save) allow(self).to receive(:w2_store) expect(subject).to receive(:processed_widget=).twice - subject.saveWidgets(run_widgets, "ID" => :event) + subject.saveWidgets(run_widgets, event) end end # used by CWMTab and CWM::ReplacePoint describe "#handleWidgets" do it "calls the handle methods" do - expect(self).to receive(:w1_handle).with("w1", "ID" => :event).and_return(nil) - expect(self).to receive(:w2_handle).with("w2", "ID" => :event).and_return(nil) - expect(subject.handleWidgets(run_widgets, "ID" => :event)).to eq(nil) + expect(self).to receive(:w1_handle).with("w1", event).and_return(nil) + expect(self).to receive(:w2_handle).with("w2", event).and_return(nil) + expect(subject.handleWidgets(run_widgets, event)).to eq(nil) end it "breaks the loop if a handler returns non-nil" do - expect(self).to receive(:w1_handle).with("w1", "ID" => :event).and_return(:foo) + expect(self).to receive(:w1_handle).with("w1", event).and_return(:foo) expect(self).to_not receive(:w2_handle) - expect(subject.handleWidgets(run_widgets, "ID" => :event)).to eq(:foo) + expect(subject.handleWidgets(run_widgets, event)).to eq(:foo) end it "sets @processed_widget" do allow(self).to receive(:w1_handle).and_return(nil) allow(self).to receive(:w2_handle).and_return(nil) expect(subject).to receive(:processed_widget=).twice - subject.handleWidgets(run_widgets, "ID" => :event) + subject.handleWidgets(run_widgets, event) end it "filters the events if 'handle_events' is specified" do @@ -198,25 +199,25 @@ allow(self).to receive(:w2_handle) widgets = deep_copy(run_widgets) widgets[0]["handle_events"] = [:special_event] - subject.handleWidgets(widgets, "ID" => :event) + subject.handleWidgets(widgets, event) end end describe "#validateWidgets" do it "calls the validate methods" do - expect(self).to receive(:w1_validate).with("w1", "ID" => :event).and_return(true) - expect(self).to receive(:w2_validate).with("w2", "ID" => :event).and_return(true) - expect(subject.validateWidgets(run_widgets, "ID" => :event)).to eq(true) + expect(self).to receive(:w1_validate).with("w1", event).and_return(true) + expect(self).to receive(:w2_validate).with("w2", event).and_return(true) + expect(subject.validateWidgets(run_widgets, event)).to eq(true) end context "if a handler returns false" do before do - expect(self).to receive(:w1_validate).with("w1", "ID" => :event).and_return(false) + expect(self).to receive(:w1_validate).with("w1", event).and_return(false) end it "breaks the loop if a handler returns false" do expect(self).to_not receive(:w2_validate) - expect(subject.validateWidgets(run_widgets, "ID" => :event)).to eq(false) + expect(subject.validateWidgets(run_widgets, event)).to eq(false) end # SetValidationFailedHandler @@ -225,7 +226,7 @@ handler = -> { called = true } subject.SetValidationFailedHandler(handler) - subject.validateWidgets(run_widgets, "ID" => :event) + subject.validateWidgets(run_widgets, event) # we cannot set an expectation on `handler` because a copy is made expect(called).to eq(true) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.18/library/system/test/execute_test.rb new/yast2-4.5.19/library/system/test/execute_test.rb --- old/yast2-4.5.18/library/system/test/execute_test.rb 2022-10-25 17:20:01.000000000 +0200 +++ new/yast2-4.5.19/library/system/test/execute_test.rb 2022-11-04 11:15:57.000000000 +0100 @@ -58,7 +58,8 @@ it "adds to passed arguments chroot option if scr chrooted" do allow(Yast::WFM).to receive(:scr_root).and_return("/mnt") - expect(Cheetah).to receive(:run).with("ls", "-a", chroot: "/mnt") + opts = { chroot: "/mnt" } + expect(Cheetah).to receive(:run).with("ls", "-a", opts) subject.on_target("ls", "-a") end @@ -80,7 +81,8 @@ it "adds to passed arguments chroot option if scr chrooted" do allow(Yast::WFM).to receive(:scr_root).and_return("/mnt") - expect(Cheetah).to receive(:run).with("ls", "-a", chroot: "/mnt") + opts = { chroot: "/mnt" } + expect(Cheetah).to receive(:run).with("ls", "-a", opts) subject.on_target("ls", "-a") end @@ -96,7 +98,8 @@ end it "captures stdout of the command" do - expect(Cheetah).to receive(:run).with("ls", "-a", stdout: :capture) + opts = { stdout: :capture } + expect(Cheetah).to receive(:run).with("ls", "-a", opts) subject.stdout("ls", "-a") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.18/package/yast2.changes new/yast2-4.5.19/package/yast2.changes --- old/yast2-4.5.18/package/yast2.changes 2022-10-25 17:20:01.000000000 +0200 +++ new/yast2-4.5.19/package/yast2.changes 2022-11-04 11:15:57.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 31 13:07:35 UTC 2022 - Martin Vidner <mvid...@suse.com> + +- Fix hash vs keyword arguments in RSpec expectations (bsc#1204871) +- 4.5.19 + +------------------------------------------------------------------- Tue Oct 25 08:32:48 UTC 2022 - Ladislav Slezák <lsle...@suse.cz> - Improve logging in the ProductControl module, use the new diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.18/package/yast2.spec new/yast2-4.5.19/package/yast2.spec --- old/yast2-4.5.18/package/yast2.spec 2022-10-25 17:20:01.000000000 +0200 +++ new/yast2-4.5.19/package/yast2.spec 2022-11-04 11:15:57.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.18 +Version: 4.5.19 Release: 0 Summary: YaST2 Main Package