Sha256: aa4e94c0d771ddbf05dd326a584383c80fd80f2c90b2abf902cad54475fcca43

Contents?: true

Size: 479 Bytes

Versions: 14

Compression:

Stored size: 479 Bytes

Contents

require 'open3' # we'll use this to invoke the binary

RSpec.describe 'gitloc binary' do
  let(:binpath)  { File.expand_path '../../bin/gitloc', __FILE__ }
  let(:repopath) { File.expand_path '../..',            __FILE__ }

  it 'takes a git repository and tells me how many lines of code are in each file' do
    stdout, stderr, exitstatus = Open3.capture3(binpath, repopath)
    expect(stdout).to match /2.*?spec\/fixtures\/2loc/
    expect(exitstatus).to be_success
  end
end

Version data entries

14 entries across 14 versions & 8 rubygems

Version Path
gitloc-marissa-0.2.0 spec/acceptance_spec.rb
gitloc-marissa-0.1.1 spec/acceptance_spec.rb
gitloc-marissa-0.1.0 spec/acceptance_spec.rb
gitloc-javi-rev-0.1.1 spec/acceptance_spec.rb
gitloc-derreckmansheim-0.1.0 spec/acceptance_spec.rb
gitloc-GregGlover-0.1.1 spec/acceptance_spec.rb
gitloc-GregGlover-0.1.0 spec/acceptance_spec.rb
gitloc-seangallen-0.1.0 spec/acceptance_spec.rb
gitloc-joshcheek-0.2.0 spec/acceptance_spec.rb
gitloc-jackyeh-0.1.1 spec/acceptance_spec.rb
gitloc-joshcheek-0.1.1 spec/acceptance_spec.rb
gitloc-jackyeh-0.1.0 spec/acceptance_spec.rb
gitloc-kristaanelson-0.1.0 spec/acceptance_spec.rb
gitloc-joshcheek-0.1.0 spec/acceptance_spec.rb