Skip to content

Commit

Permalink
try to make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 16, 2018
1 parent f60a4cb commit 542c54d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/dasd_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

before do
allow(Yast::SCR).to receive(:Execute).with(Yast::Path.new(".target.bash_output"),
/\/sbin\/dasdview/).
and_return({"exitstatus" => 0, "stdout" => load_file("dasdview_eckd.txt"), "stderr" => ""})
/\/sbin\/dasdview/)
.and_return("exitstatus" => 0, "stdout" => load_file("dasdview_eckd.txt"), "stderr" => "")

allow(Yast::Mode).to receive(:normal).and_return(false)
allow(Yast::Mode).to receive(:installation).and_return(true)
Expand All @@ -44,8 +44,8 @@

it "does not format disk for FBA disk" do
allow(Yast::SCR).to receive(:Execute).with(Yast::Path.new(".target.bash_output"),
/\/sbin\/dasdview/).
and_return({"exitstatus" => 0, "stdout" => load_file("dasdview_fba.txt"), "stderr" => ""})
/\/sbin\/dasdview/)
.and_return("exitstatus" => 0, "stdout" => load_file("dasdview_fba.txt"), "stderr" => "")

expect(Yast::SCR).to_not receive(:Execute).with(Yast::Path.new(".process.start_shell"),
"/sbin/dasdfmt -Y -P 1 -b 4096 -y -r 10 -m 10 -f '/dev/dasda'")
Expand Down

0 comments on commit 542c54d

Please sign in to comment.