Skip to content
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

Generated Model Tests Should Scaffold Required Traits #543

Open
danfinlay opened this issue Feb 10, 2014 · 1 comment
Open

Generated Model Tests Should Scaffold Required Traits #543

danfinlay opened this issue Feb 10, 2014 · 1 comment

Comments

@danfinlay
Copy link

For example, when scaffolding a Person model with a default:name attribute, in the test/models/person.js file the simple test to see if the model saves without an error should say

var person = Person.create({
  name: "Test"
});

Each attribute type could just have a default placeholder value for testing purposes.

I don't completely get the gen architecture, would contribute if someone would give me a brief overview / tour sometime.

For example, I can tell my bug would be fixed on this line, but I don't know how to access, say, required attributes from this EJS.

@mde
Copy link
Contributor

mde commented Feb 11, 2014

This would be awesome to have. Happy to walk you through the gen stuff in the IRC channel, or on Skype, whatever. You could also talk to https://github.com/der-On, who's doing some work on the generators right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants