Sha256: e415b1116b385b7bf6bca9b87b7c3219bb659c22f8eef9966a6303bfe17ce103

Contents?: true

Size: 471 Bytes

Versions: 5

Compression:

Stored size: 471 Bytes

Contents

require './lib/ghit/ssh_globals'

describe Ghit::SshGlobals do

  let(:remote) { "origin\tgit@github.com:author/name.git (fetch)" }
  subject{ described_class.new(remote) }

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

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

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

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