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