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

Fix more unused local variable warnings

This commit is contained in:
Matijs van Zuijlen 2015-01-23 14:01:32 +01:00
parent 992d21edb6
commit efd0ed82d3
2 changed files with 3 additions and 2 deletions

View file

@ -259,6 +259,7 @@ describe "show-source" do
class ::TestHost
def hello
hello = proc { ' smile ' }
_foo = hello
pry_tester(binding)
end
end

View file

@ -58,14 +58,14 @@ describe "Sticky locals (_file_ and friends)" do
it 'locals should return last result (_)' do
pry_tester.tap do |t|
lam = t.eval 'lambda { |foo| }'
lam = t.eval 'lambda { |_foo| }'
t.eval('_').should == lam
end
end
it 'locals should return second last result (__)' do
pry_tester.tap do |t|
lam = t.eval 'lambda { |foo| }'
lam = t.eval 'lambda { |_foo| }'
t.eval 'num = 1'
t.eval('__').should == lam
end