[rspec-users] How to write a spec file for a helper

Salil Gaikwad lists at ruby-forum.com
Mon Apr 13 11:09:45 EDT 2009


How to write a spec file for a following helper

module ArtistsHelper

def round_to(x)
    (self * 10**x).round.to_f / 10**x
end

end

Regards

salil
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list