halostatue/diff-lcs — pull request #8 by ged (2012-01-24 22:46:59+00:00)
Title: A fix+specs for Diff::LCS::ChangeTypeTests predicates

The last three Diff::LCS::ChangeTypeTests predicates use a non-existant instance variable, which causes them not to work correctly.

This is a patch for those methods, and specs for them (via the Diff::LCS::Change class).

I wasn't sure what the best testing strategy was, so I tried to err on the side of the least possible code that still showed the bug and the fix. If you'd rather they were written some other way, I'd be happy to do so.