diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-11 13:54:51 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-11 13:54:51 -0700 |
commit | 1e76fdf03d4ba680cef4b9e35449a2b6e5e55c7b (patch) | |
tree | fc47d6a57e5f2d5e7052c56a67b42e12d18e8e50 | |
parent | a65cb52db5985e602a46f5375295761b6f04bb68 (diff) | |
download | mixlib-config-1e76fdf03d4ba680cef4b9e35449a2b6e5e55c7b.tar.gz |
add some more tests
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/mixlib/config_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/mixlib/config_spec.rb b/spec/mixlib/config_spec.rb index ca86b01..a08e3cc 100644 --- a/spec/mixlib/config_spec.rb +++ b/spec/mixlib/config_spec.rb @@ -1277,8 +1277,10 @@ alpha = "beta" let(:hash) do { "alpha" => "beta", + gamma: "delta", "foo" => %w{ bar baz matazz}, "bar" => { "baz" => { "fizz" => "buzz" } }, + "windows_path" => 'C:\Windows Has Awful\Paths', } end @@ -1291,7 +1293,9 @@ alpha = "beta" ConfigIt.from_hash(hash) expect(ConfigIt.foo).to eql(%w{ bar baz matazz }) expect(ConfigIt.alpha).to eql("beta") + expect(ConfigIt.gamma).to eql("delta") expect(ConfigIt[:bar][:baz][:fizz]).to eql("buzz") + expect(ConfigIt.windows_path).to eql('C:\Windows Has Awful\Paths') end end end |