mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix PryTester
This commit is contained in:
parent
5da52a02ca
commit
edd3970917
1 changed files with 3 additions and 6 deletions
|
@ -103,14 +103,11 @@ end
|
||||||
class PryTester
|
class PryTester
|
||||||
attr_reader :pry, :out
|
attr_reader :pry, :out
|
||||||
|
|
||||||
def initialize(context = TOPLEVEL_BINDING, options = {})
|
def initialize(target = TOPLEVEL_BINDING, options = {})
|
||||||
@pry = Pry.new(options)
|
@pry = Pry.new(options.merge(:target => target))
|
||||||
@history = options[:history]
|
@history = options[:history]
|
||||||
|
|
||||||
if context
|
|
||||||
self.context = context
|
|
||||||
@pry.inject_sticky_locals!
|
@pry.inject_sticky_locals!
|
||||||
end
|
|
||||||
|
|
||||||
@pry.input_array << nil # TODO: shouldn't need this
|
@pry.input_array << nil # TODO: shouldn't need this
|
||||||
reset_output
|
reset_output
|
||||||
|
|
Loading…
Reference in a new issue