Skip to content

Commit

Permalink
Merge pull request rails#34335 from robin850/update-bug-report-templates
Browse files Browse the repository at this point in the history
Update bug report templates
  • Loading branch information
kamipo authored Oct 29, 2018
2 parents 0bd4894 + f1e4d3d commit 0d68e06
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 87 deletions.
10 changes: 1 addition & 9 deletions guides/bug_report_templates/action_controller_gem.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand Down Expand Up @@ -42,9 +37,6 @@ def index

require "minitest/autorun"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

class BugTest < Minitest::Test
include Rack::Test::Methods

Expand Down
7 changes: 1 addition & 6 deletions guides/bug_report_templates/action_controller_master.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/active_job_gem.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -19,9 +14,6 @@
require "minitest/autorun"
require "active_job"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

class BuggyJob < ActiveJob::Base
def perform
puts "performed"
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/active_job_master.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -18,9 +13,6 @@
require "active_job"
require "minitest/autorun"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

class BuggyJob < ActiveJob::Base
def perform
puts "performed"
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/active_record_gem.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -21,9 +16,6 @@
require "minitest/autorun"
require "logger"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Base.logger = Logger.new(STDOUT)
Expand Down
7 changes: 1 addition & 6 deletions guides/bug_report_templates/active_record_master.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/active_record_migrations_gem.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -21,9 +16,6 @@
require "minitest/autorun"
require "logger"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Base.logger = Logger.new(STDOUT)
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/active_record_migrations_master.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -20,9 +15,6 @@
require "minitest/autorun"
require "logger"

# Ensure backward compatibility with minitest 4.
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)

# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Base.logger = Logger.new(STDOUT)
Expand Down
7 changes: 1 addition & 6 deletions guides/bug_report_templates/benchmark.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand Down
10 changes: 1 addition & 9 deletions guides/bug_report_templates/generic_gem.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand All @@ -20,9 +15,6 @@
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?
Expand Down
7 changes: 1 addition & 6 deletions guides/bug_report_templates/generic_master.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# frozen_string_literal: true

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
require "bundler/inline"

gemfile(true) do
source "https://rubygems.org"
Expand Down

0 comments on commit 0d68e06

Please sign in to comment.