Skip to content

Commit 63a8099

Browse files
committed
Add a "generic" bug report template
This template gives contributors a starting point to use when reporting bugs that does not involve Active Record or Action Pack.
1 parent 16df732 commit 63a8099

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Activate the gems you are reporting the issue against.
2+
gem 'activesupport', '4.2.0'
3+
require 'active_support'
4+
require 'active_support/core_ext/object/blank'
5+
require 'minitest/autorun'
6+
7+
# Ensure backward compatibility with Minitest 4
8+
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
9+
10+
class BugTest < Minitest::Test
11+
def test_stuff
12+
assert "zomg".present?
13+
refute "".present?
14+
end
15+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
unless File.exist?('Gemfile')
2+
File.write('Gemfile', <<-GEMFILE)
3+
source 'https://rubygems.org'
4+
gem 'rails', github: 'rails/rails'
5+
gem 'arel', github: 'rails/arel'
6+
GEMFILE
7+
8+
system 'bundle'
9+
end
10+
11+
require 'bundler'
12+
Bundler.setup(:default)
13+
14+
require 'active_support'
15+
require 'active_support/core_ext/object/blank'
16+
require 'minitest/autorun'
17+
18+
# Ensure backward compatibility with Minitest 4
19+
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
20+
21+
class BugTest < Minitest::Test
22+
def test_stuff
23+
assert "zomg".present?
24+
refute "".present?
25+
end
26+
end

0 commit comments

Comments
 (0)