From bda8fc9ca5f0e9ee43eae3cf197d0a01a5fbeef7 Mon Sep 17 00:00:00 2001 From: Neil Spring Date: Mon, 14 Nov 2016 15:21:21 -0500 Subject: [PATCH] use the --no-rename option to git statistics to match the expected insertions/deletions in spec tests; useful for test success on os x --- spec/git_data/short_stat_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/git_data/short_stat_spec.rb b/spec/git_data/short_stat_spec.rb index 57efa675e..325574f74 100644 --- a/spec/git_data/short_stat_spec.rb +++ b/spec/git_data/short_stat_spec.rb @@ -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)