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