Sha256: 9c5deeeb7721ce0fdf162115fa3af461f90411daeba17020ca83c9445163f20e

Contents?: true

Size: 564 Bytes

Versions: 66

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe Aptible::CLI::Helpers::App::HandleFromGitRemote do
  it 'should parse handle from remote without account' do
    str = 'git@test.aptible.com:test-app.git'
    result = described_class.parse(str)[:app_handle]
    expect(result).not_to be nil
    expect(result).to eql 'test-app'
  end

  it 'should parse handle from remote with account' do
    str = 'git@test.aptible.com:test-account/test-app.git'
    result = described_class.parse(str)[:app_handle]
    expect(result).not_to be nil
    expect(result).to eql 'test-app'
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
aptible-cli-0.17.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.17.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.9 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.8 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.7 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.6 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.5 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.4 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.3 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.16.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.15.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.15.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.15.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.14.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.14.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.13.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.12.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.11.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb