Sha256: 9b0e3885607abfd13aec467352522addeb594c4f733ea72d5f6fb92f01c6a3c7

Contents?: true

Size: 661 Bytes

Versions: 79

Compression:

Stored size: 661 Bytes

Contents

require 'r10k'
require 'r10k/svn'

describe R10K::SVN::Remote do
  subject { described_class.new('https://svn-server.site/repo') }

  it "generates the trunk URL by appending '/trunk' to the base URL" do
    expect(subject.trunk).to eq 'https://svn-server.site/repo/trunk'
  end

  describe "retrieving branches" do
    let(:branches) do
      %[apache/\ndns/\nrobobutler/\nstaging/\n]
    end

    it "enumerates the /branches directory of the base URL" do
      allow(subject).to receive(:svn).with(['ls', 'https://svn-server.site/repo/branches']).and_return(branches)
      expect(subject.branches).to eq(%w[apache dns robobutler staging])
    end
  end
end

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
r10k-3.0.0 spec/unit/svn/remote_spec.rb
r10k-2.6.4 spec/unit/svn/remote_spec.rb
r10k-2.6.3 spec/unit/svn/remote_spec.rb
r10k-2.6.2 spec/unit/svn/remote_spec.rb
r10k-2.6.1 spec/unit/svn/remote_spec.rb
r10k-2.6.0 spec/unit/svn/remote_spec.rb
r10k-2.5.5 spec/unit/svn/remote_spec.rb
r10k-2.5.4 spec/unit/svn/remote_spec.rb
r10k-2.5.3 spec/unit/svn/remote_spec.rb
r10k-2.5.2 spec/unit/svn/remote_spec.rb
r10k-2.5.1 spec/unit/svn/remote_spec.rb
r10k-2.4.5 spec/unit/svn/remote_spec.rb
r10k-2.3.1 spec/unit/svn/remote_spec.rb
r10k-2.4.4 spec/unit/svn/remote_spec.rb
r10k-2.5.0 spec/unit/svn/remote_spec.rb
r10k-2.4.3 spec/unit/svn/remote_spec.rb
r10k-2.4.1 spec/unit/svn/remote_spec.rb
r10k-2.4.0 spec/unit/svn/remote_spec.rb
r10k-2.3.0 spec/unit/svn/remote_spec.rb
r10k-2.2.2 spec/unit/svn/remote_spec.rb