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:
parent
9eb01f1436
commit
007f946209
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue