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.6.6 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.4 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.3 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.2 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.1 spec/aptible/cli/helpers/handle_from_git_remote.rb
aptible-cli-0.6.0 spec/aptible/cli/helpers/handle_from_git_remote.rb