aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/code_statistics.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2013-03-09 20:32:01 +0000
committerJon Leighton <j@jonathanleighton.com>2013-03-09 20:32:01 +0000
commit9ae81be072ef392cadd291c92889e7ca7c878f32 (patch)
tree2861228d26de1eaed841c910b4cc617a264150e9 /railties/lib/rails/code_statistics.rb
parentca35454b498657cd94cb0a4203801e52687aa9e0 (diff)
downloadrails-9ae81be072ef392cadd291c92889e7ca7c878f32.tar.gz
rails-9ae81be072ef392cadd291c92889e7ca7c878f32.tar.bz2
rails-9ae81be072ef392cadd291c92889e7ca7c878f32.zip
Fix race condition in test
This should fix travis. For real this time! This is the one! The readpartial(100) meant that an earlier assert_stdout could chomp up the output that a later assert_stdout wants, meaning that the later assertion fails. Reading only 1 byte at a time ensure that we don't read any more than is necessary to verify the assertion.
Diffstat (limited to 'railties/lib/rails/code_statistics.rb')
0 files changed, 0 insertions, 0 deletions