Sha256: f9b7b3be0d960213ad2dadfceeffef3ff6595cce6391d8094d020cbd07a3f047

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'

describe Bezebe::CVS do
    describe "when using a known repository (W3)" do

        describe "with correct credentials" do
            it "should work"
        end

        describe "with wrong credentials" do
            it "shouldn't work"
        end
        
        before do
            #::Bezebe::CVS.stub!(:puts)
            #::Bezebe::CVS.stub!(:p)
            #stub!(:puts)
            #stub!(:p)
            @client1 = ::Bezebe::CVS::CVSClient.new
            @client1.connect FactoryGirl.attributes_for(:connection_details)
        end

        it 'should be able to get information from a known file' do
            status = @client1.status "/tmp/w3c/test/", "/tmp/w3c/test/foo"
            puts status.logInfo.to_yaml unless status.nil?
        end

        it 'should be able to get information from two known files' do
            status = @client1.status "/tmp/w3c/test/", [ "/tmp/w3c/test/foo", "/tmp/w3c/test/bar" ]
            puts status.logInfo.to_yaml unless status.nil?
        end

    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bezebe-cvs-0.0.1 spec/status_spec.rb