summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-09-30 16:54:43 +0530
committerantima-gupta <agupta@msystechnologies.com>2020-11-12 21:31:30 -0800
commit5951200470b3db0fd75b121db0fc08c3946eafe8 (patch)
tree52dbdd61f1e73bfeb33195ba2fdf727c5d170001 /spec
parente263bbe44937bda779cba6322ceb0480b12508ca (diff)
downloadchef-5951200470b3db0fd75b121db0fc08c3946eafe8.tar.gz
Updated enabled? method to fix multiple entry issue in fstab.
Fixed test case failure. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/mount/mount_spec.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb
index b84a07e9ce..2ac9d12f42 100644
--- a/spec/unit/provider/mount/mount_spec.rb
+++ b/spec/unit/provider/mount/mount_spec.rb
@@ -247,15 +247,6 @@ describe Chef::Provider::Mount::Mount do
expect(@provider.current_resource.enabled).to be_falsey
end
- it "should set enabled to false if the mount point is not last in fstab" do
- line_1 = "#{@new_resource.device} #{@new_resource.mount_point} ext3 defaults 1 2\n"
- line_2 = "/dev/sdy1 #{@new_resource.mount_point} ext3 defaults 1 2\n"
- allow(::File).to receive(:foreach).with("/etc/fstab").and_yield(line_1).and_yield(line_2)
-
- @provider.load_current_resource
- expect(@provider.current_resource.enabled).to be_falsey
- end
-
it "should not mangle the mount options if the device in fstab is a symlink" do
# expand the target path to correct specs on Windows
target = "/dev/mapper/target"