Sha256: ba6506a4cddd35afb474179ae7a9979b34e1990645465f13cbc5897af9de3a3b

Contents?: true

Size: 780 Bytes

Versions: 75

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

require 'avm/git/vendor/github'

RSpec.describe ::Avm::Git::Vendor::Github do
  describe '#to_ssh_url' do
    SSH_URL = 'git@github.com:esquilo-azul/eac_launcher.git' # rubocop:disable RSpec/LeakyConstantDeclaration
    NO_SSH_URL = 'https://otherhost.com/esquilo-azul/eac_launcher' # rubocop:disable RSpec/LeakyConstantDeclaration

    {
      nil => nil,
      '   ' => nil,
      'https://github.com/esquilo-azul/eac_launcher' => SSH_URL,
      'https://github.com/esquilo-azul/eac_launcher.git' => SSH_URL,
      SSH_URL => SSH_URL,
      NO_SSH_URL => NO_SSH_URL
    }.each do |input, expected|
      it "converts \"#{input}\" to \"#{expected}\"" do
        expect(described_class.to_ssh_url(input)).to eq(expected)
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
eac_tools-0.45.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.45.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.44.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.43.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.42.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.41.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.40.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.39.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.38.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.37.2 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.37.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.37.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.36.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.36.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.35.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb