spec/ppl/adapter/storage/git_spec.rb in ppl-1.12.0 vs spec/ppl/adapter/storage/git_spec.rb in ppl-1.13.0

- old
+ new

@@ -14,18 +14,25 @@ @vcard = double(Ppl::Adapter::Vcard) Rugged::Repository.stub(:new).and_return(@repo) @disk.stub(:directory).and_return(Dir.new("/contacts")) + @disk.stub(:path).and_return("/contacts") @contact.stub(:id).and_return("test") @git = Ppl::Adapter::Storage::Git.new(@disk) @git.vcard_adapter = @vcard end after(:each) do FileUtils.rm_rf "/contacts" FakeFS.deactivate! + end + + describe "#path" do + it "should return the path of the repository" do + @git.path.should eq "/contacts" + end end describe "#initialize" do it "should accept a disk storage adapter" do @git.disk.should be @disk