lib/templates/spec/spec_helper.rb in hazel-0.0.4 vs lib/templates/spec/spec_helper.rb in hazel-0.0.5

- old
+ new

@@ -3,13 +3,24 @@ require 'bundler' Bundler.setup Bundler.require +ENV["RACK_ENV"] = "test" + require 'minitest/pride' require 'minitest/autorun' require 'minitest/spec' require 'rack/test' +<% if @redis %> +require 'fakeredis' +REDIS = Redis.new +<% end %> + +require "find" +%w{./config/initializers ./lib}.each do |load_path| + Find.find(load_path) { |f| require f if f.match(/\.rb$/) } +end class MiniTest::Spec include Rack::Test::Methods end