File tree 5 files changed +12
-1
lines changed
5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ gem 'ranked-model'
34
34
gem 'staccato'
35
35
36
36
gem "rails-settings-cached"
37
+ gem 'sucker_punch' , '~> 2.0'
37
38
38
39
# Auth Gems
39
40
gem 'devise'
Original file line number Diff line number Diff line change 422
422
activesupport (>= 4.0 )
423
423
sprockets (>= 3.0.0 )
424
424
staccato (0.4.5 )
425
+ sucker_punch (2.0.1 )
426
+ concurrent-ruby (~> 1.0.0 )
425
427
temple (0.7.6 )
426
428
terminal-table (1.5.2 )
427
429
thor (0.19.1 )
@@ -540,6 +542,7 @@ DEPENDENCIES
540
542
shoulda
541
543
spring (~> 1.4.0 )
542
544
staccato
545
+ sucker_punch (~> 2.0 )
543
546
timecop
544
547
trix
545
548
turbolinks
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Application < Rails::Application
28
28
29
29
# We are using active_job and currently the inline backend. You may change this if
30
30
# you want a more robust solution. The queue is used for emails.
31
- # config.active_job.queue_adapter = your_adapter_here
31
+ config . active_job . queue_adapter = :sucker_punch
32
32
33
33
end
34
34
end
Original file line number Diff line number Diff line change
1
+ # config/initializers/sucker_punch.rb
2
+
3
+ require 'sucker_punch/async_syntax'
Original file line number Diff line number Diff line change 4
4
require File . expand_path ( '../../config/environment' , __FILE__ )
5
5
require 'rails/test_help'
6
6
7
+ # Requiring this library causes your jobs to run everything inline. So a call to the following
8
+ # will actually be SYNCHRONOUS
9
+ require 'sucker_punch/testing/inline'
10
+
7
11
class ActiveSupport ::TestCase
8
12
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
9
13
fixtures :all
You can’t perform that action at this time.
0 commit comments