mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f1e4d3d8dd
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.
28 lines
492 B
Ruby
28 lines
492 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" }
|
|
|
|
gem "rails", github: "rails/rails"
|
|
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
|