aboutsummaryrefslogtreecommitdiffstats
path: root/guides/bug_report_templates/generic_gem.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/bug_report_templates/generic_gem.rb')
-rw-r--r--guides/bug_report_templates/generic_gem.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/guides/bug_report_templates/generic_gem.rb b/guides/bug_report_templates/generic_gem.rb
new file mode 100644
index 0000000000..3e3f8593d4
--- /dev/null
+++ b/guides/bug_report_templates/generic_gem.rb
@@ -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