1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

More lenient assertion for whereami -n

This commit is contained in:
☈king 2013-01-08 15:00:10 -06:00 committed by rking@sharpsaw.org
parent 0eccbbbd43
commit 982b4fa92d

View file

@ -115,7 +115,7 @@ describe "whereami" do
class Cor class Cor
def blimey! def blimey!
out = pry_eval(binding, 'whereami -n') out = pry_eval(binding, 'whereami -n')
out.should =~ /^def/ out.should =~ /^\s*def/
out.should.not =~ /\=\>/ out.should.not =~ /\=\>/
end end
end end