mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
use the --no-rename option to git statistics to match the expected insertions/deletions in spec tests; useful for test success on os x
This commit is contained in:
parent
c5361bae49
commit
bda8fc9ca5
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ describe GitStats::GitData::ShortStat do
|
||||||
{content: '', expect: [0, 0, 0]},
|
{content: '', expect: [0, 0, 0]},
|
||||||
].each do |test|
|
].each do |test|
|
||||||
it "#{test[:content]} parsing" do
|
it "#{test[:content]} parsing" do
|
||||||
commit.repo.should_receive(:run).with("git show --shortstat --oneline abc -- .").and_return("abc some commit\n#{test[:content]}")
|
commit.repo.should_receive(:run).with("git show --shortstat --oneline --no-renames abc -- .").and_return("abc some commit\n#{test[:content]}")
|
||||||
|
|
||||||
|
|
||||||
commit.short_stat.should be_a(GitStats::GitData::ShortStat)
|
commit.short_stat.should be_a(GitStats::GitData::ShortStat)
|
||||||
|
|
Loading…
Reference in a new issue