Skip to content

Instantly share code, notes, and snippets.

@kenton
Created August 28, 2012 17:50
Show Gist options
  • Save kenton/3501362 to your computer and use it in GitHub Desktop.
Save kenton/3501362 to your computer and use it in GitHub Desktop.
1) Failure:
test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_345-360_minute_window(SendOpDriverNagEmailsJobTest)
[/test/unit/send_op_driver_nag_email_job_test.rb:41:in `test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_345-360_minute_window'
/Users/kentonnewby/.rvm/gems/ruby-1.8.7-p334@ldc/gems/after_commit-1.0.10/lib/after_commit/connection_adapters.rb:14:in `transaction'
/test/unit/send_op_driver_nag_email_job_test.rb:36:in `test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_345-360_minute_window']:
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Resque Client connected to redis://localhost:6379/0.enqueue(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: Resque Client connected to redis://localhost:6379/0.enqueue(any_parameters)
2) Failure:
test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_75-90_minute_window(SendOpDriverNagEmailsJobTest)
[/test/unit/send_op_driver_nag_email_job_test.rb:24:in `test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_75-90_minute_window'
/Users/kentonnewby/.rvm/gems/ruby-1.8.7-p334@ldc/gems/after_commit-1.0.10/lib/after_commit/connection_adapters.rb:14:in `transaction'
/test/unit/send_op_driver_nag_email_job_test.rb:19:in `test_job_gets_enqueued_when_a_reservation_is_returned_inside_the_75-90_minute_window']:
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Resque Client connected to redis://localhost:6379/0.enqueue(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: Resque Client connected to redis://localhost:6379/0.enqueue(any_parameters)
428 tests, 1436 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [/Users/kentonnewby/.rvm/rubies/ruby-1.8.7-...]
@Braidio
Copy link

Braidio commented Jan 11, 2015

Out of curiosity, did you ever figure out why the Resque Client was not being invoked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment