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.80.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.79.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.78.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.77.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.77.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.76.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.76.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.75.2 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.75.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.75.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.74.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.74.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.73.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.72.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.70.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.70.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.69.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.69.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.68.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.67.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb