Sha256: 37095c18d7c0c3a0d36e388e0c8b5c452e4f908743271b1bf272983dbad4371b

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

describe GitWakaTime::Cli do
  before do
    stub_request(:get, /wakatime\.com/)
    .with(query: hash_including(:start, :end))
    .to_return(body: File.read('./spec/fixtures/heartbeats.json'), status: 200)
  end
  it 'should be able to be called' do
    ARGV.replace %w[tally --start_on 2012-01-01 --file] << @wdir.to_s
    expect(capture(:stdout) { GitWakaTime::Cli.start }).to eq ''
    # puts GitWakaTime::Cli.start('tally', "--file #{@wdir.to_s}")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitwakatime-0.2.2 spec/cli_spec.rb
gitwakatime-0.2.1 spec/cli_spec.rb