ruby-jokes / close_enough

Spelling is hrad. close_enough lets yuo think about code instaed.
http://ruby-jokes.github.com/close_enough
GNU General Public License v3.0
84 stars 10 forks source link

Exclude to_* methods (fix #6) #17

Closed canweriotnow closed 11 years ago

canweriotnow commented 11 years ago

to_* methods are too short and too close to rely on finding the correct method based on Levenshtein distance. the to_ary/to_r lookup issue breaks RSpec, probably other things as well.

Since we can't reliably guess that class of short methods, we should exclude them...

README should be updated to reflect that if we decide to go with this workaround.

canweriotnow commented 11 years ago

close_enough_spec.rb has been updated to test this patch (instead of testing to_sim/to_sym, btw)