cookbooks/aws-parallelcluster-environment/spec/unit/resources/volume_spec.rb [148:166]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            end

            it "removes volume /SHARED_DIR from /etc/fstab" do
              is_expected.to edit_delete_lines("remove volume /SHARED_DIR from /etc/fstab")
                .with(path: "/etc/fstab")
                .with(pattern: " /SHARED_DIR ")
            end

            it "deletes shared dir only if it exists and it is empty" do
              if is_dir_empty
                is_expected.to delete_directory('/SHARED_DIR')
                  .with(recursive: false)
              else
                is_expected.not_to delete_directory('/SHARED_DIR')
              end
            end
          end
        end
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cookbooks/aws-parallelcluster-environment/spec/unit/resources/volume_spec.rb [196:214]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            end

            it "removes volume /SHARED_DIR from /etc/fstab" do
              is_expected.to edit_delete_lines("remove volume /SHARED_DIR from /etc/fstab")
                .with(path: "/etc/fstab")
                .with(pattern: " /SHARED_DIR ")
            end

            it "deletes shared dir only if it exists and it is empty" do
              if is_dir_empty
                is_expected.to delete_directory('/SHARED_DIR')
                  .with(recursive: false)
              else
                is_expected.not_to delete_directory('/SHARED_DIR')
              end
            end
          end
        end
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



