Skip to content

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