Skip to content

Commit

Permalink
new rubocop: manual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 6, 2024
1 parent d8ab292 commit 42e3a6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/y2s390/dialogs/format_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class FormatDialog < ::UI::Dialog
#
# @param dasds [Array<Y2S390::Dasd>] list of DASDs to be formatted
def initialize(dasds)
super()

textdomain "s390"
@dasds = dasds
@fmt_process = FormatProcess.new(dasds)
Expand Down
2 changes: 2 additions & 0 deletions test/y2s390/dialogs/format_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -93,6 +94,7 @@ def mock_ui_events(*events)
end

it "returns nil" do
expect(subject.run).to eq nil
end
end

Expand Down

0 comments on commit 42e3a6b

Please sign in to comment.