-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Abstract model classes should be skipped without warning. #857
Conversation
The tests are failing because we removed DelayedJob in #845. We can probably make an |
output = run_generator | ||
|
||
expect(routes).not_to contain("abstract_model") | ||
expect(output).not_to include("WARNING: Unable to generate a dashboard for AbstractModel") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [98/80]
|
||
expect(routes).not_to contain("model_without_db_table") | ||
expect(output).to include("WARNING: Unable to generate a dashboard for ModelWithoutDBTable") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [100/80]
I’ve also clarified the existing specs by including an assertion against the presence of a warning, so the name of the spec matches what is actually being tested. Use shortened syntax and strip whitespace.
|
||
output = run_generator | ||
|
||
expect(routes).not_to contain("abstract_model") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this always pass since you load up the routes file before running the generator?
…#857) I’ve also clarified the existing specs by including an assertion against the presence of a warning, so the name of the spec matches what is actually being tested. Use shortened syntax and strip whitespace.
This is a rebased version of #582.