On 29 Apr 2008, at 18:25, 21croissants wrote:
I wrote a Rails plugin which uses simian to look for duplicates
lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
should be_DRY }
If you use Autotest, your specs will fail the next time you do a nasty
copy-paste !!!
More details in http://21croissants.blogspot.com/2008/03/dry.html
Feedback and patches (with specs!) welcome ;-)
Sounds good! Any reason why you wrote it as a Rails plugin though?
This could be used for any ruby project... except mine of course, I
never copy and paste, honest :o)
Ashley
--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users