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

Fixed test for constant leaks, as some ruby versions may define VERSION as a

top-level constant (fixes #93)
This commit is contained in:
Mon ouïe 2011-04-30 23:56:20 +02:00
parent 9eb01f1436
commit 007f946209

View file

@ -19,7 +19,7 @@ describe Pry do
# bug fix for https://github.com/banister/pry/issues/93
it 'should not leak pry constants into Object namespace' do
input_string = "VERSION == ::Pry::VERSION"
input_string = "CommandContext"
str_output = StringIO.new
o = Object.new
pry_tester = Pry.new(:input => StringIO.new(input_string),
@ -762,4 +762,4 @@ describe Pry do
end
end
end
end
end