Sha256: eb5ce557fb3d42e3a051c74f7e4d252f06cff09a0a64e4d4b07708857a7e6602

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'
describe Dotman do
  context "dotman folder doesn't exist on the folder" do
    before :all do
      FileUtils.rm_rf("#{ENV['HOME']}/.dotman")
    end

    it "creates a new folder" do
      File.directory?("#{ENV['HOME']}/.dotman").should == false
      Dotman.ensure_dotman_folder_exists
      File.directory?("#{ENV['HOME']}/.dotman").should == true
    end

    after :each do
      FileUtils.rm_rf("#{ENV['HOME']}/.dotman")
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dotman-0.0.1 spec/integration/dotman_integration_spec.rb