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

Testing with Cucumber #748

Closed
bacancy-anand opened this issue Mar 2, 2013 · 1 comment
Closed

Testing with Cucumber #748

bacancy-anand opened this issue Mar 2, 2013 · 1 comment

Comments

@bacancy-anand
Copy link

Hi there, I am trying to send email with async behavior. I have written worker for that and calling method of worker with _async with some hash as a parameter. i.e. Worker.perfrom_async({}). Now When I am testing email received with cucumber it doesn't appear that email is received. I am testing like email count should be 1. What could be the reason ? I am thinking that performing task written in Worker executes in different environment (i.e. sidekiq environment) in which cucumber can't be able to access email. Any suggestion would be appreciated.

@bacancy-anand
Copy link
Author

Resolve it by including require 'sidekiq/testing/inline' in feature/support/env.rb

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