From 39fc3faa6bace053eed6ac715795c0a889e56acd Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 17 May 2010 15:28:39 +0300 Subject: [PATCH] add rputs() method for debugging with rspec and textmate --- spec/spec_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0bed44d..28efb8c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ $:.unshift(File.dirname(__FILE__) + '/../lib') $:.unshift(File.dirname(__FILE__) + '/..') require 'v8' +require 'erb' def rputs(msg) - puts ERB::Util.h(msg) + puts "
#{ERB::Util.h(msg)}
" end