Skip to content

Commit

Permalink
Merge pull request #404 from yast/fix-autoinstallrules-test
Browse files Browse the repository at this point in the history
Fix AutoInstallRules unit tests
  • Loading branch information
imobachgs committed Feb 27, 2018
2 parents 3b2e467 + 6ec1b2e commit 81b4ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/AutoInstallRules_test.rb
Expand Up @@ -123,7 +123,7 @@
)
expect(Yast::SCR).to receive(:Execute).with(Yast::Path.new(".target.bash_output"),
"if ( [ \"$hostaddress\" = \"10.69.57.43\" ] ) || ( [ \"$mac\" = \"000c2903d288\" ] ); then exit 0; else exit 1; fi",
{"hostaddress" => subject.hostaddress, "mac"=>""}
{ "hostaddress" => subject.hostaddress, "mac"=> subject.mac}
)
.and_return({"stdout"=>"", "exit"=>0, "stderr"=>""})

Expand All @@ -143,7 +143,7 @@
)
expect(Yast::SCR).to receive(:Execute).with(Yast::Path.new(".target.bash_output"),
"if ( [ \"$hostaddress\" = \"10.69.57.43\" ] ) && ( [ \"$mac\" = \"000c2903d288\" ] ); then exit 0; else exit 1; fi",
{"hostaddress" => subject.hostaddress, "mac"=>""}
{ "hostaddress" => subject.hostaddress, "mac"=> subject.mac }
)
.and_return({"stdout"=>"", "exit"=>0, "stderr"=>""})

Expand All @@ -162,7 +162,7 @@
)
expect(Yast::SCR).to receive(:Execute).with(Yast::Path.new(".target.bash_output"),
"if ( [ \"$hostaddress\" = \"10.69.57.43\" ] ) && ( [ \"$mac\" = \"000c2903d288\" ] ); then exit 0; else exit 1; fi",
{"hostaddress" => subject.hostaddress, "mac"=>""}
{ "hostaddress" => subject.hostaddress, "mac"=> subject.mac }
)
.and_return({"stdout"=>"", "exit"=>0, "stderr"=>""})

Expand Down

0 comments on commit 81b4ab4

Please sign in to comment.