Sha256: bdf19fa6c5cfbe19f8f3a5ad19ad950b0b39971ca40b79452d51ec21dd5a4417
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 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" 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erector-0.4.200 | spec/spec_helper.rb |
erector-0.4.191 | spec/spec_helper.rb |