Sha256: e14cbf92e825ea8a081cedf8dfa434fd9bff938c533310880ee4996705e842c2
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' require 'gitwakatime' describe 'description' do let(:path) { File.join(File.dirname(__FILE__), 'dummy') } let (:map) { GitWakaTime::Mapper.new(path) } 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(path)).get timer = GitWakaTime::Timer.new(map.commits, actions, File.basename(path)).process expect(timer.size).to eq 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitwakatime-0.0.2 | spec/timer_spec.rb |