Sha256: 57f6c02329449a931628cf54a7bf954ebd65bae674674e3e58abbe9776cb1d96
Contents?: true
Size: 842 Bytes
Versions: 9
Compression:
Stored size: 842 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, Lint/ConstantDefinitionInBlock NO_SSH_URL = 'https://otherhost.com/esquilo-azul/eac_launcher' # rubocop:disable RSpec/LeakyConstantDeclaration, Lint/ConstantDefinitionInBlock { 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
9 entries across 9 versions & 1 rubygems