/spec/spec_helper.rb

https://bitbucket.org/ramonrails/data-scraper-in-ruby · Ruby · 6 lines · 3 code · 1 blank · 2 comment · 0 complexity · 03fc83ec663f9d5181de3fb5a91284f0 MD5 · raw file

  1. require 'simplecov'
  2. SimpleCov.start
  3. # Fri Jun 1 16:07:00 IST 2012, ram@sarvasv.in (ramonrails)
  4. # * pickup all models except the sample|test that were given already
  5. Dir.glob( "*.rb").reject {|e| e =~ /sample|test/}.each {|f| require "./#{f}" }