Sha256: fb36272501c2b28beeba171092f4bbcda966661ec173328eab1a09a5b836df50

Contents?: true

Size: 333 Bytes

Versions: 8

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe Ghit::RepoLocator do
  let(:locator) { described_class.new }
  
  it 'opens the URL in browser' do
    dummy_url = "origin https://github.com/author/name (fetch)"
    expect(Ghit::RemoteExtracter).to receive(:extract!).and_return dummy_url
    expect(locator).to receive(:`)
    locator.open
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ghit-0.2.4 spec/repo_locator_spec.rb
ghit-0.2.3 spec/repo_locator_spec.rb
ghit-0.2.2 spec/repo_locator_spec.rb
ghit-0.2.1 spec/repo_locator_spec.rb
ghit-0.2.0 spec/repo_locator_spec.rb
ghit-0.1.0 spec/repo_locator_spec.rb
ghit-0.0.2 spec/repo_locator_spec.rb
ghit-0.0.1 spec/repo_locator_spec.rb