This project is archived and is in readonly mode.
rake test:uncommitted raises undefined method map on String
-
Sunny
- Tag changed from git to git, rake, test
Patch that fixes this: http://github.com/sunny/rails/commit/22a13782b \o/
-
Sunny
- Tag changed from git, rake, test to git, patch, rake, test
Attaching diff rather than github fork.
-
Sunny
- State changed from new to resolved
Added [#5397 rake test:uncommitted raises undefined method map on String state:resolved] to commit message.
-
Santiago Pastorino
- State changed from resolved to open
- Importance changed from to Low
-
Sunny
- Tag changed from git, patch, rake, test to git, patch, rake, ruby1.9, test
This is a Ruby 1.9 issue. Strings don't come with .map() anymore so this task always fails.
-
Josh Kalderimis
- Tag changed from git, patch, rake, ruby1.9, test to rake, ruby1.9
- Assigned user set to Josh Kalderimis
Hi Sunny,
I have spoken to José about this issue, and although your patch does fix it, the bigger issue at hand is that this code (rake task) isn't tested at all.
Ideally the code within
def filesshould be extracted into its own class which is tested and then used in this rake task.If you are still interested in working on this patch please let me know.
Thanks
Josh
-
Sunny
I'm interested in working on this patch but I'm not very familiar with the Rails codebase. It might take long.
As for testing it, the tests would depend on svn and git. Is that ok for Rails?
-
Josh Kalderimis
Hi Sunny,
This is a good patch to start off with.
And the tests won't need to depend on svn or git as we can stub out those parts.
Fork rails, create a new branch for what you are doing, and start making changes, if you have any questions do not hesitate to ask, you can also find me on irc in #rails-contrib.
I will leave the ticket assigned to me so I can monitor its progress.
Thanks
Josh
-
Sunny
Thanks Josh! Started making a few changes in a testuncommited branch. Not sure I'm placing things where they should be and feeling somewhat stuck. Guess I need to crawl through the whole Rails test suite to find similar tests.
