Sha256: 023bd5130380da7b3aed2c23645948a587a93f90fe2b281be724929c031d13e9
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
require 'spec_helper' describe Dotman::DotfileCollection do before :each do Dotman::Git.clone_repository('git@github.com:Timbinous/dotfiles.git', 'tim') end describe ".find_by_alias" do context "when dotfile collection is found" do let (:alias_name) { 'tim' } let (:dotfile_collection_name) { 'Timbinous_dotfiles' } let! (:dotfile_configuration) { Dotman::DotfileCollection.new_configuration(dotfile_collection_name, alias_name) } it "returns the dotfile collection" do Dotman::DotfileCollection.find_by_alias(alias_name).should be_an_instance_of(Dotman::DotfileCollection) end end end describe ".all_aliases" do context "when an alias exists in the collection" do it "lists the alias" do Dotman::DotfileCollection.all_aliases.should include('tim') end end end describe ".show_all_aliases" do context "when aliases exist in the collection" do it "shows all the aliases" do STDOUT.should_receive(:puts).with("default\ntim") Dotman::DotfileCollection.show_all_aliases end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dotman-0.0.3.1 | spec/integration/dotfile_collection_integration_spec.rb |