sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

Fix bug in SC::Generator#snake_case #98

Closed ianejames closed 11 years ago

ianejames commented 11 years ago

The snake_case method would transform "LOGGED_IN" into "logge_d_in".

The first commit adds a spec for the method, taking examples from the comments. The second commit fixes the bug and adds a test to the aforementioned spec.