1
0
Fork 0
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:
Deepender 2013-12-11 16:39:52 +05:30
parent 24ab88a307
commit 5717ff487b

View file

@ -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