Sha256: 035441e622c5bf216fe29316d7e32320b0f1ac8d1cfc74b93e15da33b89997a9
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
require 'spec_helper' require 'gitwakatime' require 'gitwakatime/mapper' describe 'description' do it 'can be run on dummy' do expect(GitWakaTime::Mapper.new(@wdir).commits.size).to eq 8 # 9ths is lonely end it 'can be run on dummy' do expect(GitWakaTime::Mapper.new(@wdir).commits.last.raw_commit.message).to eq 'created readme' end it 'maps files dependent commits' do expect(GitWakaTime::Mapper.new(@wdir).commits.first.files.first.dependent_commit.sha).to eq 'dcd748bd06b8a0f239d779bee4f1eaf1f4aa500d' end it 'maps files dependent commits' do expect(GitWakaTime::Mapper.new(@wdir).commits.select { |c| c.sha == 'dcd748bd06b8a0f239d779bee4f1eaf1f4aa500d' }.first.files.first.dependent_commit.sha).to eq '2254dd56976b5f32a2289438842e42a35a18ff86' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitwakatime-0.0.3 | spec/mapper_spec.rb |