Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "generic" bug report template #19818

Merged
merged 1 commit into from
Apr 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions guides/bug_report_templates/generic_gem.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Activate the gems you are reporting the issue against.
gem 'activesupport', '4.2.0'
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
26 changes: 26 additions & 0 deletions guides/bug_report_templates/generic_master.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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