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

Fix ivar leakage

This commit is contained in:
Ryan Fitzgerald 2012-12-23 18:22:58 -08:00
parent 00c2fc935d
commit 0e1ae0fe9f

View file

@ -225,7 +225,7 @@ describe "commands" do
end
it 'should run a command in the context of a session' do
pry_tester.tap do |t|
pry_tester(Object.new).tap do |t|
t.eval "@session_ivar = 10", "_pry_.run_command('ls')"
t.last_output.should =~ /@session_ivar/
end