rails/guides/bug_report_templates/active_job_gem.rb
Robin Dupret f1e4d3d8dd Update bug report templates
Given that Bundler 1.10 was released back in 2015, we can assume
that people are at least on this version or a higher one so there
is no need to ask people to upgrade.

Also, given that Rails 5.0 supports Ruby 2.2+ and given that this
version come with Minitest 5.4.3 bundled, we don't need to ensure
backward compatibility with Minitest 4.
2018-10-28 18:12:48 +01:00

30 lines
540 B
Ruby

# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Activate the gem you are reporting the issue against.
gem "activejob", "5.2.0"
end
require "minitest/autorun"
require "active_job"
class BuggyJob < ActiveJob::Base
def perform
puts "performed"
end
end
class BuggyJobTest < ActiveJob::TestCase
def test_stuff
assert_enqueued_with(job: BuggyJob) do
BuggyJob.perform_later
end
end
end