Permalink
Browse files

Churn spec is bad, but it's hard to test

  • Loading branch information...
1 parent f61d143 commit 3e2d9676b3361a43083ccb2618fcbf2cbb3a7700 @iain committed Feb 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/metrical/metrics/churn_spec.rb
@@ -5,7 +5,8 @@
let(:result) { Metrical::Metrics::Churn.run }
it "reports changes" do
- result[:changes].size.should == `git ls-files | wc -l`.to_i
+ change = result[:changes].find { |change| change[:file_path] == "lib/metrical.rb" }
+ change[:times_changed].should be >= 5
end
end

0 comments on commit 3e2d967

Please sign in to comment.