mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ee43a67c2c
This template gives contributors a starting point to use when reporting bugs that does not involve Active Record or Action Pack.
26 lines
584 B
Ruby
26 lines
584 B
Ruby
unless File.exist?('Gemfile')
|
|
File.write('Gemfile', <<-GEMFILE)
|
|
source 'https://rubygems.org'
|
|
gem 'rails', github: 'rails/rails'
|
|
gem 'arel', github: 'rails/arel'
|
|
GEMFILE
|
|
|
|
system 'bundle'
|
|
end
|
|
|
|
require 'bundler'
|
|
Bundler.setup(:default)
|
|
|
|
require 'active_support'
|
|
require 'active_support/core_ext/object/blank'
|
|
require 'minitest/autorun'
|
|
|
|
# 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
|