1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Bryan FRIMIN
32c55e3165 Use standardrb for source styling (#4114) 2019-04-01 09:20:41 -07:00
Mike Perham
2c9f7662fc Freeze all string literals in source, fixes #2741
Tests pass and smoke test works perfectly.
2015-12-31 15:33:35 -08:00
Ryan Schlesinger
fd0232eb15 Add dynamic testing
In addition to requiring 'sidekiq/testing' and 'sidekiq/testing/inline',
a user can also call the following methods to control the test harness:

Sidekiq::Testing.fake!
Sidekiq::Testing.inline!
Sidekiq::Testing.disable!

Each of the above methods also accepts a block to execute within that
context before reverting to the state present before method invocation.

To query the current state, use the following methods:

Sidekiq::Testing.enabled?
Sidekiq::Testing.disabled?
Sidekiq::Testing.fake?
Sidekiq::Testing.inline?

Closes #1053
2013-09-23 12:07:23 -07:00
Mike Perham
9360c01aad client api refactoring 2013-03-24 17:42:43 -07:00
Mike Perham
638514c08a Use Kernel#Array, fixes #647 2013-01-25 08:58:13 -08:00
Mike Ragalie
dee4e38961 Run .push_bulk calls inline in inline testing mode 2012-11-19 17:34:46 -08:00
Mike Perham
576eb6fa56 Inline testing now runs through client middleware before executing, fixes #465 2012-10-25 20:55:32 -07:00
Mike Perham
b3757fdfa6 Rejigger inline testing to handle enqueue/enqueue_to 2012-09-07 08:59:04 -07:00
Petteri Räty
1eb0c80ca0 Inline testing should pass arguments through json
If you are passing arguments like time objects that serialize to strings
but don't deserialize back automatically, inline testing was passing the
objects through raw meaning different behavior in tests vs. production.
Now the inline wrapper does a round trip through json.
2012-06-01 16:37:50 +03:00
Pan Thomakos
c4e6fae37c Added inline testing functionality.
Allows sidekiq jobs to run inline in test mode without having to modify
the production code. In other words production code can still call the
`perform_async` method and tests can still verify that functionality is
run inline.
2012-05-02 11:04:29 -07:00