Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 13, 2016
1 parent 2979f50 commit dbcd616
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions test/autoyast_converter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@
"loader_type" => "lilo"
}

expect{subject.import(map)}.to raise_error(Bootloader::UnsupportedBootloader)
expect { subject.import(map) }.to raise_error(Bootloader::UnsupportedBootloader)
end

it "import configuration to returned bootloader" do
data = {
"append" => "verbose nomodeset",
"terminal" => "gfxterm",
"os_prober" => "true",
"hiddenmenu" => "true",
"timeout" => 10,
"activate" => "true",
"generic_mbr" => "false",
"append" => "verbose nomodeset",
"terminal" => "gfxterm",
"os_prober" => "true",
"hiddenmenu" => "true",
"timeout" => 10,
"activate" => "true",
"generic_mbr" => "false"
}

bootloader = subject.import("global" => data)
Expand All @@ -68,7 +68,7 @@

it "supports SLE9 format" do
data = {
"activate" => "true",
"activate" => "true",
"loader_device" => "/dev/sda1"
}

Expand All @@ -93,17 +93,17 @@
bootloader.stage1.activate = true

expected_export = {
"append" => "verbose nomodeset",
"terminal" => "gfxterm",
"os_prober" => "true",
"hiddenmenu" => "true",
"timeout" => 10,
"boot_mbr" => "false",
"boot_boot" => "false",
"append" => "verbose nomodeset",
"terminal" => "gfxterm",
"os_prober" => "true",
"hiddenmenu" => "true",
"timeout" => 10,
"boot_mbr" => "false",
"boot_boot" => "false",
"boot_extended" => "false",
"boot_root" => "false",
"activate" => "true",
"generic_mbr" => "false",
"boot_root" => "false",
"activate" => "true",
"generic_mbr" => "false"
}

expect(subject.export(bootloader)["global"]).to eq expected_export
Expand Down

0 comments on commit dbcd616

Please sign in to comment.