From 982b4fa92d3b7f50f75236644762127234bd0955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=88king?= Date: Tue, 8 Jan 2013 15:00:10 -0600 Subject: [PATCH] More lenient assertion for whereami -n --- spec/commands/whereami_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/commands/whereami_spec.rb b/spec/commands/whereami_spec.rb index 92f2e4b5..8d4c582f 100644 --- a/spec/commands/whereami_spec.rb +++ b/spec/commands/whereami_spec.rb @@ -115,7 +115,7 @@ describe "whereami" do class Cor def blimey! out = pry_eval(binding, 'whereami -n') - out.should =~ /^def/ + out.should =~ /^\s*def/ out.should.not =~ /\=\>/ end end