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

What methods need to be used with methods_with_side_effects #10

Open
chrise86 opened this issue Jan 31, 2017 · 0 comments
Open

What methods need to be used with methods_with_side_effects #10

chrise86 opened this issue Jan 31, 2017 · 0 comments

Comments

@chrise86
Copy link

I'm struggling to get this to work how I'd expect.

I have one ActiveJob that loops through emails in an inbox, finds a record based on the contents of each email, performs a state machine transition on the record and then moves that email to an 'Archive' folder via uid_copy and uid_store. After the loop has finished, the job calls imap.expunge, imap.logout and imap.disconnect.

The problem is that I need to run multiple tests for this worker, but the first time it runs it is archiving all mail and fails on subsequent tests.

How would I record once and perform multiple test?

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

No branches or pull requests

1 participant