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

Update rspec matchers and clean up spec folder #156

Merged
merged 2 commits into from
Jan 22, 2015

Conversation

jeffcarbs
Copy link
Contributor

Resolves #155

Remove deprecated rspec matchers
This changes the rspec matchers from the 2.x syntax to the 3.x. It also changes the spec descriptions to the third person present tense (i.e. 'it does something' vs 'it should do something') - see http://betterspecs.org/#should.

Reorganized the project (mostly specs)
I've always found it best to keep the spec file structure the same as the library file structure. It makes it easy to see what has/hasn't been spec'd, where specific specs should live, etc. This commit moves some existing specs into the appropriate place and creates placeholders for others.

This also moves the ImapExtensions into the Gmail namespace which makes a bit more sense then just having it be a standalone class living in the /gmail/client folder.

Sidenote: We could probably better split out the specs and DRY them up a bit. Especially the individual client specs.

...aaaand changed GMail to Gmail throughout.

This changes the rspec matchers from the 2.x syntax to the 3.x. It
also changes the spec descriptions to the third person present
tense (i.e. 'it does something' vs 'it should do something') - see
http://betterspecs.org/#should.
I've always found it best to keep the spec file structure the same as
the library file structure. It makes it easy to see what has/hasn't
been spec'd, where specific specs should live, etc. This moves
some existing specs into the appropriate place and creates
placeholders for others.

This also moves the imap extensions out into the Gmail namespace
which makes a bit more sense then just having it be a standalone
class living in the /gmail/client folder.

Sidenote: We could probably better split out the specs and DRY them
up a bit. Especially the individual client specs.
@jeffcarbs jeffcarbs changed the title Update rspec matchers Update rspec matchers and clean up spec folder Jan 20, 2015
bootstraponline added a commit that referenced this pull request Jan 22, 2015
Update rspec matchers and clean up spec folder
@bootstraponline bootstraponline merged commit 0975052 into master Jan 22, 2015
@bootstraponline
Copy link
Member

Thanks!

@bootstraponline bootstraponline deleted the update-rspec-matchers branch January 22, 2015 22:01
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.

Fix RSpec deprecation warnings
2 participants