mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
method_spec.rb fixed
This commit is contained in:
parent
24ab88a307
commit
5717ff487b
1 changed files with 1 additions and 2 deletions
|
@ -75,8 +75,7 @@ describe Pry::Method do
|
|||
end
|
||||
|
||||
it 'should take care of cases like $ mongo[] - issue 998' do
|
||||
f = Class.new { def []; :hello; end }
|
||||
binding.eval("f = {}")
|
||||
f = Class.new { def []; :hello; end }.new
|
||||
meth = Pry::Method.from_str("f[]", Pry.binding_for(binding))
|
||||
meth.name.should == "[]"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue