Sha256: a990fc49ab9533a6ad208c508b14bfbf805ca3a920a88153124f5357254c89dc
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
# coding: utf-8 if RUBY_VERSION <= '1.8.7' else require "simplecov" require "simplecov-rcov" SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter SimpleCov.start end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) $LOAD_PATH.unshift(File.dirname(__FILE__)) require "rspec" require "<%=@project_name%>" require "tempfile" # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end module <%=@module_name%> <%=@project_name.upcase%>_HOME = File.expand_path(File.dirname(__FILE__) + "/..") REDIRECT = {} end <%=@module_name%>.logger = Logger.new(STDERR) if File.exist?('/tmp/<%=@project_name%>.debug') then <%=@module_name%>.logger.level = Logger::DEBUG <%=@module_name%>::REDIRECT[:stdout] = nil <%=@module_name%>::REDIRECT[:stderr] = nil else <%=@module_name%>.logger.level = Logger::ERROR <%=@module_name%>::REDIRECT[:stdout] = "> /dev/null" <%=@module_name%>::REDIRECT[:stderr] = "2> /dev/null" end
Version data entries
4 entries across 4 versions & 1 rubygems