Sha256: dfb28c1d19f0851c828a684aa28d857f9f857e59f2ad6748f4d2678abc53b9d4

Contents?: true

Size: 704 Bytes

Versions: 11

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'
require 'dots/command'

describe Dots::Command do
  before do
    dot_file = File.expand_path("~/.dot_file")
    %x(touch #{dot_file}) unless File.exists? dot_file
  end

  describe "persist PATH" do
    subject { %x(./bin/dots persist ~/.dot_file) }

    it "copies the file to the dots repo" do
      subject.should_not be_blank
    end
  end

  describe "forget PATH" do
    subject { %x(./bin/dots forget ~/.dot_file) }

    it "restores the file to its original location" do
      subject.should_not be_blank
    end
  end

  describe "bare invocation" do
    subject { %x(./bin/dots) }

    it "shows usage information" do
      subject.should_not be_blank
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
zsh_dots-0.6.5 spec/integration/command_spec.rb
zsh_dots-0.6.3 spec/integration/command_spec.rb
zsh_dots-0.6.2 spec/integration/command_spec.rb
zsh_dots-0.6.0 spec/integration/command_spec.rb
zsh_dots-0.5.9 spec/integration/command_spec.rb
zsh_dots-0.5.8 spec/integration/command_spec.rb
zsh_dots-0.5.7 spec/integration/command_spec.rb
zsh_dots-0.5.6 spec/integration/command_spec.rb
zsh_dots-0.5.5 spec/integration/command_spec.rb
zsh_dots-0.5.4 spec/integration/command_spec.rb
zsh_dots-0.5.3 spec/integration/command_spec.rb