Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Test rake command #2

Open
eknowlton opened this issue Aug 21, 2019 · 2 comments
Open

Test rake command #2

eknowlton opened this issue Aug 21, 2019 · 2 comments

Comments

@eknowlton
Copy link
Contributor

Right now there are no tests for the rake command. We need a test for this.

@eknowlton
Copy link
Contributor Author

It is now mock tested with #4

Hoping to maybe hook up a IMAP server with a expected state of emails, so that we can just run the rake task with an actual IMAP server. This may just be done in CircleCI but maybe we can do it locally.

Might want to look at https://github.com/y10k/rims

@eknowlton
Copy link
Contributor Author

eknowlton commented Aug 24, 2019

  • test it relays messages
  • Spin up rails server
  • Mock task with STDIN for piped input
  • Check for unprocessed email
  • Check status code for success

and

  • test it returns status code for failed
  • Mock task with STDIN for piped input
  • Check for unprocessed email
  • Check status code for failure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant