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

Improve spec generator template #695

Closed
wants to merge 1 commit into from
Closed

Improve spec generator template #695

wants to merge 1 commit into from

Conversation

zavan
Copy link

@zavan zavan commented Sep 10, 2015

Newer RSpec versions requires that you call the first describe block on the RSpec class.

I also added the type of the spec and a "pending" message, to make it similar to the default rspec generators.

I kept spec_helper instead of rails_helper because there's no need to load Rails to test the decorator in isolation, since we can test them with POROs and/or stubbing methods.

Newer RSpec versions requires that you call the first describe block on the RSpec class.

I also added the type of the spec and a "pending" message, to make it similar to the default rspec generators.

I kept `spec_helper` instead of `rails_helper` because there's no need to load Rails to test the decorator in isolation, since we can test them with POROs.
@zavan
Copy link
Author

zavan commented Sep 10, 2015

Didn't see #692 before, sorry, closing this.

@zavan zavan closed this Sep 10, 2015
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

Successfully merging this pull request may close these issues.

1 participant