Skip to content

Commit

Permalink
Extended test
Browse files Browse the repository at this point in the history
  • Loading branch information
kobliha committed Oct 22, 2013
1 parent e8fc6bf commit f68aae2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions library/general/test/linuxrc_test.rb
Expand Up @@ -171,6 +171,16 @@ def load_install_inf(defaults_replacement={})
load_install_inf
expect(Linuxrc.InstallInf("Locale")).to be_equal(DEFAULT_INSTALL_INF["Locale"])
end

it "returns nil if value for unknown key is requested" do
load_install_inf
expect(Linuxrc.InstallInf("Unknown Key Requested")).to be_nil
end

it "returns nil if value for 'nil' key is requested" do
load_install_inf
expect(Linuxrc.InstallInf(nil)).to be_nil
end
end

describe "#keys" do
Expand Down

0 comments on commit f68aae2

Please sign in to comment.