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