Sha256: c78898484199ed2b29b3b59b58dba297a21ad6e82c7b95dd488e7c065c918859
Contents?: true
Size: 1006 Bytes
Versions: 4
Compression:
Stored size: 1006 Bytes
Contents
# frozen_string_literal: true require 'avm/eac_github_base0/application_scms/base' RSpec.describe Avm::EacGithubBase0::ApplicationScms::Base do let(:stub_application) do { scm_url: 'https://github.com'.to_uri, scm_repos_path: 'esquilo-azul/eac_tools'.to_pathname, scm_ssh_username: 'git' }.to_struct end let(:instance) { described_class.new(stub_application) } include_examples 'in_avm_registry', 'application_scms' describe '#git_https_url' do it do expect(instance.git_https_url).to( eq(Addressable::URI.parse('https://github.com/esquilo-azul/eac_tools.git')) ) end end describe '#git_ssh_url' do it do expect(instance.git_ssh_url).to( eq(Addressable::URI.parse('ssh://git@github.com/esquilo-azul/eac_tools.git')) ) end end describe '#web_url' do it do expect(instance.web_url).to( eq(Addressable::URI.parse('https://github.com/esquilo-azul/eac_tools')) ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems