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.34.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.33.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.32.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.31.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.31.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.30.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.29.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.28.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.27.2 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.27.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.27.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.26.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.25.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.25.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.24.1 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.24.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.23.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.22.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.21.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb
eac_tools-0.20.0 sub/avm-tools/spec/lib/avm/launcher/vendor/github_spec.rb