Skip to content

Commit

Permalink
changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 22, 2016
1 parent c222653 commit cf192a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/sections_test.rb
Expand Up @@ -56,16 +56,14 @@
expect { subject.default = "non-exist" }.to raise_error(RuntimeError)
end

it "handle localized grub.cfg" do
it "handles localized grub.cfg" do
data_path = File.expand_path("../data/grub.cfg", __FILE__)
file = CFA::MemoryFile.new(File.read(data_path))
grub_cfg = CFA::Grub2::GrubCfg.new(file_handler: file)
grub_cfg.load

sections = Bootloader::Sections.new(grub_cfg)

puts sections.all.inspect

expect { sections.default = "openSUSE Tumbleweed, с Linux 4.8.6-2-default" }.to_not raise_error
expect { sections.default = "openSUSE Tumbleweed, \u0441 Linux 4.8.6-2-default" }.to_not raise_error
expect { sections.default = "openSUSE Tumbleweed, \xD1\x81 Linux 4.8.6-2-default" }.to_not raise_error
Expand Down

0 comments on commit cf192a4

Please sign in to comment.