-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up generator for generator specs
Don't force pluralization of the generator name in the generated spec and use the full generator name in the spec description. Also clean up an extra whitespace and empty line in the template. Note that the generator class constant cannot be directly used in the spec description as it isn't loaded by default.
- Loading branch information
Showing
3 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe "<%= class_name.pluralize %>", <%= type_metatag(:generator) %> do | ||
|
||
RSpec.describe "<%= class_name %>Generator", <%= type_metatag(:generator) %> do | ||
pending "add some scenarios (or delete) #{__FILE__}" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters