Sha256: 9096c0a35fe463e0227275ed3265cb03552b0c7caaec4adab264f1d308dbac18
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
dir = File.dirname(__FILE__) require "rubygems" $LOAD_PATH.unshift("#{dir}/../lib") require "erector" require "erector/rails" require "hpricot" require "rr" require 'tempfile' require 'ostruct' require 'treetop' require "erector/erect" require "erector/erected" require "spec" require "spec/autorun" Spec::Runner.configure do |config| config.mock_with :rr end # This mimics Rails load path and dependency stuff RAILS_ROOT = File.expand_path("#{File.dirname(__FILE__)}/rails_root") unless defined?(RAILS_ROOT) #$: << "#{RAILS_ROOT}/app" module Views module TemplateHandlerSpec end end # uncomment this to find leftover debug putses # # alias :original_puts :puts # def puts(string ="") # super string.to_s + "\s(#{caller.first.match(/(\w+\.\w+:\d+)|Rakefile:\d+/)[0]})" # end # # alias :original_p :p # def p(string="") # original_puts "\s(#{caller.first.match(/(\w+\.\w+:\d+)|Rakefile:\d+/)[0]})" # super(string) # end # # alias :original_print :print # def print(string="") # super string + "\s(#{caller.first.match(/(\w+\.\w+:\d+)|Rakefile:\d+/)[0]})" # end unless '1.9'.respond_to?(:force_encoding) String.class_eval do begin remove_method :chars rescue NameError # OK end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pivotal-erector-0.5.1 | spec/spec_helper.rb |