Sha256: a06fd38f0f478fe69f42e95bdb1e57e860f01893c9f468a7aaba76d5ab02634a
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Braid::Operations::Mirror#find_remote" do include Braid::Operations::Mirror before(:each) do File.should_receive(:readlines).and_return(["[remote \"braid/git/one\"]\n", "[svn-remote \"braid/git/two\"]\n"]) end it "should return true for existing git remotes" do find_remote("braid/git/one").should == true end it "should return true for existing svn remotes" do find_remote("braid/git/two").should == true end it "should return false for nonexistent remotes" do find_remote("N/A").should == false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evilchelu-braid-0.3.5 | spec/operations_spec.rb |
evilchelu-braid-0.3.6 | spec/operations_spec.rb |
evilchelu-braid-0.3.7 | spec/operations_spec.rb |