2017-08-13 09:02:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-06-06 09:32:28 -04:00
|
|
|
begin
|
2016-08-06 13:21:59 -04:00
|
|
|
require "bundler/inline"
|
2015-06-06 09:32:28 -04:00
|
|
|
rescue LoadError => e
|
2016-08-06 13:21:59 -04:00
|
|
|
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
|
2015-06-06 09:32:28 -04:00
|
|
|
raise e
|
|
|
|
end
|
2015-06-05 16:28:11 -04:00
|
|
|
|
|
|
|
gemfile(true) do
|
2016-08-06 13:21:59 -04:00
|
|
|
source "https://rubygems.org"
|
2017-09-27 04:55:43 -04:00
|
|
|
|
2017-09-26 17:02:11 -04:00
|
|
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
2017-09-27 04:55:43 -04:00
|
|
|
|
2015-06-05 16:28:11 -04:00
|
|
|
# Activate the gem you are reporting the issue against.
|
2017-05-01 08:48:11 -04:00
|
|
|
gem "activesupport", "5.1.0"
|
2015-06-05 16:28:11 -04:00
|
|
|
end
|
|
|
|
|
2016-08-06 13:21:59 -04:00
|
|
|
require "active_support/core_ext/object/blank"
|
|
|
|
require "minitest/autorun"
|
2015-04-19 18:12:19 -04:00
|
|
|
|
|
|
|
# Ensure backward compatibility with Minitest 4
|
|
|
|
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
|
|
|
|
|
|
|
|
class BugTest < Minitest::Test
|
|
|
|
def test_stuff
|
|
|
|
assert "zomg".present?
|
|
|
|
refute "".present?
|
|
|
|
end
|
|
|
|
end
|