diff options
author | Chibuikem Amaechi <cramaechi@me.com> | 2018-01-29 23:09:24 -0600 |
---|---|---|
committer | Chibuikem Amaechi <cramaechi@me.com> | 2018-01-29 23:16:35 -0600 |
commit | 4f394f02120882f41909e742d763ab382f88682e (patch) | |
tree | 16a98fa5b381fa8f5fed8eb6100f395791d080eb /spec/unit | |
parent | 0f45f8e107980a2cd49d4786fe5abd77b8085713 (diff) | |
download | chef-4f394f02120882f41909e742d763ab382f88682e.tar.gz |
Update logic in mount/mount.rb and mount/mount_spec.rb
Signed-off-by: Chibuikem Amaechi <cramaechi@me.com>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/provider/mount/mount_spec.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb index 908635e958..b61dc65800 100644 --- a/spec/unit/provider/mount/mount_spec.rb +++ b/spec/unit/provider/mount/mount_spec.rb @@ -375,12 +375,24 @@ describe Chef::Provider::Mount::Mount do end describe "default_mount_options" do - it "should return the correct default mount options for FreeBSD" do - expect(@provider.default_mount_options("freebsd")).to eq("rw") + it "should return the correct default mount options for Linux" do + @provider.node.override[:os] = "linux" + expect(@provider.default_mount_options).to eq("defaults") end - it "should return the correct default mount options for Linux" do - expect(@provider.default_mount_options("linux")).to eq("defaults") + it "should return the correct default mount options for AIX" do + @provider.node.override[:os] = "aix" + expect(@provider.default_mount_options).to eq("rw") + end + + it "should return the correct default mount options for Darwin" do + @provider.node.override[:os] = "darwin" + expect(@provider.default_mount_options).to eq("rw") + end + + it "should return the correct default mount options for FreeBSD" do + @provider.node.override[:os] = "freebsd" + expect(@provider.default_mount_options).to eq("rw") end end |