diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-07-08 06:40:14 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-07-22 04:20:30 -0700 |
commit | 39e4272b3e7ffc1687070755819a5abfb8c1f616 (patch) | |
tree | 9520c6aa646ab511a79034e261b87a73f5d83331 | |
parent | 98d0ad930276e3ab6467b144a2add22ea923220d (diff) | |
download | chef-39e4272b3e7ffc1687070755819a5abfb8c1f616.tar.gz |
mount functional test cleanup
-rw-r--r-- | spec/functional/provider/mount_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functional/provider/mount_spec.rb b/spec/functional/provider/mount_spec.rb index 8ac4a330d5..5fda7fe028 100644 --- a/spec/functional/provider/mount_spec.rb +++ b/spec/functional/provider/mount_spec.rb @@ -61,8 +61,12 @@ describe Chef::Provider::Mount::Mount do end describe "testcase A: when the target state is a mounted filesystem" do - it "should mount the filesystem if it isn't mounted" do + before do + # sanity umount for any old runs @provider.load_current_resource + @provider.run_action(:umount) + end + it "should mount the filesystem if it isn't mounted" do @provider.current_resource.enabled.should be_false @provider.current_resource.mounted.should be_false @provider.should_receive(:mount_fs).and_call_original |