Sha256: 0e2fef2f779f9250d2a0004b29710817c6cd178a7190204bc6c633e8a79755ad
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
require 'spec_helper' require 'gitwakatime' describe 'description' do let (:map) { GitWakaTime::Mapper.new(@wdir) } before do stub_request(:get, 'https://wakatime.com/api/v1/actions') .with(query: hash_including(:start, :end)) .to_return(body: File.read('./spec/fixtures/actions.json'), status: 200) end it 'can be run on dummy' do actions = GitWakaTime::Query.new(map.commits, File.basename(@wdir)).get timer = GitWakaTime::Timer.new(map.commits, actions, File.basename(@wdir)).process expect(timer.size).to eq 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitwakatime-0.0.3 | spec/timer_spec.rb |