Sha256: 90938334e1a7904a155c6fa994d87f8e22010bdb839438554134e7013b39bcda

Contents?: true

Size: 692 Bytes

Versions: 40

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

require 'avm/launcher/vendor/github'

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

    {
      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

40 entries across 40 versions & 1 rubygems

Version Path
eac_tools-0.19.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.18.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.17.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.16.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.16.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.15.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.14.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.13.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.12.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.11.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.11.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.10.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.9.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.8.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.7.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.6.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.5.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.4.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.3.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.2.2 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb