Created
December 11, 2013 09:46
-
-
Save deependersingla/7907692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should take care of corner cases like mongo[] e.g Foo::Bar.new[]- issue 998' do | |
klass = Class.new { def []; :hello; end } | |
meth = Pry::Method.from_str("klass.new[]", Pry.binding_for(binding)) | |
meth.name.should == "[]" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment