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:
Neil Spring 2016-11-14 15:21:21 -05:00
parent c5361bae49
commit bda8fc9ca5
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ describe GitStats::GitData::ShortStat do
{content: '', expect: [0, 0, 0]},
].each do |test|
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)