From 776c528b7da49bde419385ff4feb2ab7c30d4bb7 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Fri, 10 Jul 2015 15:19:35 +0200 Subject: [PATCH] cleanup --- test/AutoinstGeneral_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/AutoinstGeneral_test.rb b/test/AutoinstGeneral_test.rb index 0d11a8a2b..3948fad68 100755 --- a/test/AutoinstGeneral_test.rb +++ b/test/AutoinstGeneral_test.rb @@ -17,10 +17,10 @@ Yast::AutoinstGeneral.Import(Yast::Profile.current["general"]) expect(Yast::SCR).to receive(:Execute).with( - Yast::Path.new(".target.bash"), + path(".target.bash"), "/usr/sbin/sntp -t 2 -s #{Yast::AutoinstGeneral.mode["ntp_sync_time_before_installation"]}").and_return(0) expect(Yast::SCR).to receive(:Execute).with( - Yast::Path.new(".target.bash"),"/sbin/hwclock --systohc").and_return(0) + path(".target.bash"),"/sbin/hwclock --systohc").and_return(0) Yast::AutoinstGeneral.Write() end @@ -30,7 +30,7 @@ Yast::AutoinstGeneral.Import(Yast::Profile.current["general"]) expect(Yast::SCR).not_to receive(:Execute).with( - Yast::Path.new(".target.bash"),"/sbin/hwclock --systohc") + path(".target.bash"),"/sbin/hwclock --systohc") Yast::AutoinstGeneral.Write() end