public
Description: test/unit extension to flog
Homepage: http://simplificator.com/en/lab
Clone URL: git://github.com/simplificator/flogger.git
name age message
file .cvsignore Thu Sep 11 01:44:21 -0700 2008 added tests for myself [pascalbetz]
file .gitignore Thu Sep 11 00:05:01 -0700 2008 initial [pascalbetz]
file README Thu Sep 11 02:41:38 -0700 2008 added sorting of error messages [pascalbetz]
file Rakefile Thu Sep 11 00:05:01 -0700 2008 initial [pascalbetz]
file flogger.gemspec Thu Sep 11 03:56:27 -0700 2008 changed formatting of error message. bumped spe... [pascalbetz]
directory lib/ Thu Sep 11 03:56:27 -0700 2008 changed formatting of error message. bumped spe... [pascalbetz]
directory test/ Thu Sep 11 02:41:38 -0700 2008 added sorting of error messages [pascalbetz]
README
= flogger
== What is it
It's a test/unit extension so you can unit test your flog scores


== Installation
sudo gem install flog
sudo gem install simplificator-flogger

== usage
In your unit tests do

def test_something
  assert_flog(a_file_or_a_dir)
end

= Samples:
== Flog a file or all ruby files in a directory
assert_flog(file_or_dir)
== Flog several files or directories
assert_flog(file_or_dir_1, file_or_dir_2, file_or_fir_n)
== set your own flog threshold
assert_flog(file_or_dir, :threshold => 20)
== set your own flog threshold for a specific method
assert_flog(file_or_dir, :thresholds => {'FooClass#bar_method'})
     
= Credits
Thanks to the ruby sadists at http://ruby.sadi.st/Ruby_Sadist.html 

= More
See lib/flogger/assertions.rb for more

= About us
Simplificator writes Ruby and Ruby on Rails apps for a living.
http://simplificator.com