Sha256: 99dcdb0dbd31989382f76aa4b1e210a85bd01537b23d3940138082d3f1e71cae
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 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 timer = GitWakaTime::Query.new(map.commits, File.basename(path)).get expect(timer.size).to eq 6 # 9ths is lonely expect(timer).to be_a Array expect(timer.last).to be_a Wakatime::Models::Action expect(timer.last.branch).to eq 'master' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitwakatime-0.0.2 | spec/query_spec.rb |