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.15.0 spec/unit/svn/remote_spec.rb
akerl-r10k-3.14.2.1 spec/unit/svn/remote_spec.rb
r10k-3.14.2 spec/unit/svn/remote_spec.rb
r10k-3.14.1 spec/unit/svn/remote_spec.rb
r10k-3.14.0 spec/unit/svn/remote_spec.rb
r10k-3.13.0 spec/unit/svn/remote_spec.rb
r10k-3.12.1 spec/unit/svn/remote_spec.rb
r10k-3.12.0 spec/unit/svn/remote_spec.rb
r10k-3.11.0 spec/unit/svn/remote_spec.rb
r10k-3.10.0 spec/unit/svn/remote_spec.rb
r10k-3.9.3 spec/unit/svn/remote_spec.rb
r10k-3.9.2 spec/unit/svn/remote_spec.rb
r10k-3.9.1 spec/unit/svn/remote_spec.rb
r10k-3.9.0 spec/unit/svn/remote_spec.rb
r10k-3.8.0 spec/unit/svn/remote_spec.rb
r10k-3.7.0 spec/unit/svn/remote_spec.rb
r10k-3.6.0 spec/unit/svn/remote_spec.rb
r10k-2.6.9 spec/unit/svn/remote_spec.rb
r10k-3.5.2 spec/unit/svn/remote_spec.rb
r10k-3.5.1 spec/unit/svn/remote_spec.rb