rails/guides/bug_report_templates/active_job.rb
Jean Boussier 40d6385123 Stop generating files with git_source(:github)
This has been built-in in Bundler for years now, and the
builtin version is much better as it allows to point to a PR
directly.
2024-04-04 15:04:16 +02:00

29 lines
537 B
Ruby

# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
gem "rails"
# If you want to test against edge Rails replace the previous line with this:
# gem "rails", github: "rails/rails", branch: "main"
end
require "active_job"
require "minitest/autorun"
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