Cross Reference: sidekiq.rb
xref
: /
ontohub
/
spec
/
support
/
config
/
sidekiq.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
sidekiq.rb revision 61467f8ae537212ba3c895868c91235a21985cb8
98
N/A
#
https://github.com/mperham/sidekiq/wiki/Testing
98
N/A
98
N/A
require
'
sidekiq
/
testing
'
98
N/A
903
N/A
RSpec.configure
do
|
config
|
851
N/A
config.before
(:
each
)
do
98
N/A
# Clears out the jobs for tests using the fake testing
98
N/A
Sidekiq
::
Worker.clear
_all
919
N/A
919
N/A
if
example.metadata
[:
sidekiq
] == :
inline
919
N/A
Sidekiq
::
Testing.inline
!
919
N/A
elsif
example.metadata
[:
type
] == :
acceptance
919
N/A
Sidekiq
::
Testing.inline
!
919
N/A
elsif
example.metadata
[:
needs_hets
]
919
N/A
Sidekiq
::
Testing.inline
!
919
N/A
else
919
N/A
Sidekiq
::
Testing.fake
!
919
N/A
end
919
N/A
end
919
N/A
end
919
N/A