-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dry_scaffold not working (Can't convert nil to String) #17
Comments
Too little info I'm afraid. |
That's nice. How about you tell me what you need? |
Okay, so instead of having the rather expected --trace, there's a --backtrace. It appears there's a :test_unit default that does not actually set anything; which leads me to assume you have a default in your environment that I don't have in mine (Ubuntu 10.9) Here's the offending line (inside the 'skip tests' option block): Specifically, "FUNCTIONAL_TESTS_PATH[test_framework]" is nil. FUNCTIONAL_TESTS_PATH has the following values:
test_framework had the following value This is because:
And doing a grep on your entire library for :test_unit I find:
All caused by this: [bwilson@bwilson-laptop]~/RailsProjects/collaborate$ generate dry_scaffold fred test:string --backtrace So, is that enough for you? |
When I add the --rspec to the command, it works fine. However, the examples you provide suggest explicitly calling out a test framework is optional; with the default being the broken test_unit. Also, I tried setting the test framework in the scaffold.yml; with no love. |
Good info and ellaboration, thanks. Yea that's not good. I noticed I broke something while fixing something other, and so far had no spare-time to look at it. These issue reportings is bulking up though, so something must happen soon. If you got time it would be great if you could come up with a fast patch that I can pull in - otherwise this will have to wait until I'm done with my current achievements (current project with a upcoming deadline - and related open-source work). Sorry for being a bad maintainer lately. =| |
Sorry, I don't use Git; so it would take me longer to figure out how to use it than for you to set FUNCTIONAL_TESTS_PATH[:test_unit] when you set the other values. I mean, it is a constant, its a default setting, and it isn't set. |
The command I'm running is the line below. The line immediately following is the only response I get from the attempt. This is on an established project that has no other (apparent) issues.
generate dry_scaffold User name:string email:string
can't convert nil into String
I'm running Rails 2.3.5.
The text was updated successfully, but these errors were encountered: