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.11.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.11.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.10.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.9.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.6 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.5 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.4 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.3 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.8.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.5 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.4 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.3 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.2 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.1 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.7.0 spec/aptible/cli/helpers/handle_from_git_remote_spec.rb
aptible-cli-0.6.9 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.8 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.7 spec/aptible/cli/helpers/handle_from_git_remote.rb