From 2af734076a67063aff1f9d3fffd4a4af578e1ea7 Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Fri, 6 May 2011 14:07:35 -0700 Subject: [PATCH] Use stub_dotfile! in colorization specs to make them unaffected by ~/.aprc customizations --- spec/colorization_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/colorization_spec.rb b/spec/colorization_spec.rb index be96869..b7f412f 100644 --- a/spec/colorization_spec.rb +++ b/spec/colorization_spec.rb @@ -1,6 +1,10 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "AwesomePrint" do + before(:each) do + stub_dotfile! + end + describe "colorization" do PLAIN = '[ 1, :two, "three", [ nil, [ true, false ] ] ]' COLORIZED = "[ \e[1;34m1\e[0m, \e[0;36m:two\e[0m, \e[0;33m\"three\"\e[0m, [ \e[1;31mnil\e[0m, [ \e[1;32mtrue\e[0m, \e[1;31mfalse\e[0m ] ] ]"