Sha256: 21144ecc054afea0c647ef15dc8db7dc341bf80934978ebf7a597fb656afb76e

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

require './lib/ghit/https_globals'

describe Ghit::HttpsGlobals do

  let(:remote){ "origin\thttps://github.com/someone/something (fetch)" }

  subject{ described_class.new(remote) }

  it 'extracts author name from remote' do
    expect(subject.author).to eq "someone"
  end

  it 'extracts repo name from remote' do
    expect(subject.repository).to eq "something"
  end

  it 'extracts repo url from remote' do
    expect(subject.url).to eq "https://github.com/someone/something"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ghit-0.2.4 spec/https_globals_spec.rb
ghit-0.2.3 spec/https_globals_spec.rb
ghit-0.2.2 spec/https_globals_spec.rb
ghit-0.2.1 spec/https_globals_spec.rb
ghit-0.2.0 spec/https_globals_spec.rb