diff --git a/src/lib/y2s390/dialogs/format_dialog.rb b/src/lib/y2s390/dialogs/format_dialog.rb index 3fca2061..86d1c2f4 100644 --- a/src/lib/y2s390/dialogs/format_dialog.rb +++ b/src/lib/y2s390/dialogs/format_dialog.rb @@ -43,6 +43,8 @@ class FormatDialog < ::UI::Dialog # # @param dasds [Array] list of DASDs to be formatted def initialize(dasds) + super() + textdomain "s390" @dasds = dasds @fmt_process = FormatProcess.new(dasds) diff --git a/test/y2s390/dialogs/format_dialog_test.rb b/test/y2s390/dialogs/format_dialog_test.rb index 3ae72b72..1ec9349a 100755 --- a/test/y2s390/dialogs/format_dialog_test.rb +++ b/test/y2s390/dialogs/format_dialog_test.rb @@ -84,6 +84,7 @@ def mock_ui_events(*events) context "when the process is not running after 0.2 seconds of waiting" do before do allow(fmt_process).to receive(:running?).and_return(false) + allow(subject).to receive(:report_format_failed) end it "reports a format failed error" do @@ -93,6 +94,7 @@ def mock_ui_events(*events) end it "returns nil" do + expect(subject.run).to eq nil end end