File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
guides/bug_report_templates Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 13
13
require "action_mailer/railtie"
14
14
require "minitest/autorun"
15
15
16
+ class TestApp < Rails ::Application
17
+ config . load_defaults Rails ::VERSION ::STRING . to_f
18
+ config . root = __dir__
19
+ config . eager_load = false
20
+ config . hosts << "example.org"
21
+ config . secret_key_base = "secret_key_base"
22
+
23
+ config . logger = Logger . new ( $stdout)
24
+ end
25
+ Rails . application . initialize!
26
+
16
27
class TestMailer < ActionMailer ::Base
17
28
def hello_world
18
29
@message = "Hello, world"
Original file line number Diff line number Diff line change 10
10
# gem "rails", github: "rails/rails", branch: "main"
11
11
end
12
12
13
- require "active_job"
13
+ require "active_job/railtie "
14
14
require "minitest/autorun"
15
15
16
+ class TestApp < Rails ::Application
17
+ config . load_defaults Rails ::VERSION ::STRING . to_f
18
+ config . eager_load = false
19
+ config . secret_key_base = "secret_key_base"
20
+
21
+ config . logger = Logger . new ( $stdout)
22
+ end
23
+ Rails . application . initialize!
24
+
16
25
class BuggyJob < ActiveJob ::Base
17
26
def perform
18
27
puts "performed"
You can’t perform that action at this time.
0 commit comments