Sha256: e332d51391a3b41bc06360af25e7212df95c0f31c367f60f4251400a78413aaf
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 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 let(: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 let(: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 let(:subject) { %x(./bin/dots) } it "shows usage information" do subject.should_not be_blank end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zsh_dots-0.5.1 | spec/integration/command_spec.rb |
zsh_dots-0.5.0 | spec/integration/command_spec.rb |