Skip to content

Commit

Permalink
Merge pull request #1228 from yast/ruby2.5_fix
Browse files Browse the repository at this point in the history
Fixed test failure in Ruby 2.5
  • Loading branch information
lslezak committed Jan 7, 2022
2 parents 68ecb4e + 100d25f commit 28aca6d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions library/cwm/src/lib/cwm/dialog.rb
Expand Up @@ -26,6 +26,11 @@ def title
# @return [CWM::WidgetTerm]
abstract_method :contents

# Constructor (empty to just allow passing extra options)
def initialize(*args, **kws)
super
end

# A shortcut for `.new(*args).run`
def self.run(*args, **kws)
new(*args, **kws).run
Expand Down
5 changes: 5 additions & 0 deletions library/cwm/src/lib/cwm/popup.rb
Expand Up @@ -26,6 +26,11 @@ module CWM
# This class offers a CWM dialog which behaves as a pop-up.
# @see {CWM::Dialog} for remaining configuration options.
class Popup < Dialog
# Constructor (empty to just allow passing extra options)
def initialize(*args, **kws)
super
end

# Determines that a dialog should always be open
#
# @return [true]
Expand Down
6 changes: 6 additions & 0 deletions library/general/test/ui/installation/layout_test.rb
Expand Up @@ -24,6 +24,12 @@
require "ui/wizards/layout"

describe UI::Wizards::Layout do
before do
# ProductFeatures read the defaults from the system when running
# in an installed system
allow(Yast::Stage).to receive(:normal).and_return(false)
end

describe ".with_steps" do
it "creates a layout with steps sidebar" do
layout = described_class.with_steps
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jan 7 14:41:15 UTC 2022 - Ladislav Slezák <lslezak@suse.cz>

- Fixed test failure in Ruby 2.5, caused by the fix for Ruby 3.0
(related to bsc#1193192)
- 4.4.34

-------------------------------------------------------------------
Fri Jan 7 08:32:21 UTC 2022 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 4.4.33
Version: 4.4.34

Release: 0
Summary: YaST2 Main Package
Expand Down

0 comments on commit 28aca6d

Please sign in to comment.