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.55.6 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.5 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.4 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.3 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.2 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.55.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.54.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.53.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.52.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.51.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.50.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.49.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.48.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.48.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.47.2 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.47.1 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.47.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.46.0 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb
eac_tools-0.45.2 sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb