Re: [rspec-users] RSpec not testing ".sum"

2010-11-15 Thread Andrew Davis
Scratch this. It has been noted that rcov has a hard time distinguishing what the last line is. If I put all of the code in that model on one line, it works great. Thanks! Andrew Davis -- Posted via http://www.ruby-forum.com/. ___ rspec-users maili

Re: [rspec-users] RSpec not testing ".sum"

2010-11-15 Thread David Chelimsky
On Nov 15, 2010, at 2:13 PM, Andrew Davis wrote: > Hello all, > > I'm on the final stretch of testing my model, and I've realized that one > simple line isn't being tested. I was hoping to get some insight on what > I can do to accomplish this. The line that isn't being covered by Rcov > is the "

[rspec-users] RSpec not testing ".sum"

2010-11-15 Thread Andrew Davis
Hello all, I'm on the final stretch of testing my model, and I've realized that one simple line isn't being tested. I was hoping to get some insight on what I can do to accomplish this. The line that isn't being covered by Rcov is the ".sum". See code here: Test: http://pastie.org/private/djdqtma