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.24.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.24.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.24.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.23.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.22.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.21.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.20.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.9 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.7 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.6 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.4 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.3 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.19.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.18.3 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.18.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.18.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.18.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.17.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb