Commit a3b1ff40 authored by Stan Hu's avatar Stan Hu

Merge branch 'rs-bullet-raise' into 'master'

Enable the `bullet_logger` setting; enable `raise` in test environment

Closes #30129

See merge request !10263
parents 5f7e671f f61ded82
...@@ -260,7 +260,6 @@ group :development do ...@@ -260,7 +260,6 @@ group :development do
gem 'brakeman', '~> 3.6.0', require: false gem 'brakeman', '~> 3.6.0', require: false
gem 'letter_opener_web', '~> 1.3.0' gem 'letter_opener_web', '~> 1.3.0'
gem 'bullet', '~> 5.5.0', require: false
gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
# Better errors handler # Better errors handler
...@@ -272,6 +271,7 @@ group :development do ...@@ -272,6 +271,7 @@ group :development do
end end
group :development, :test do group :development, :test do
gem 'bullet', '~> 5.5.0', require: !!ENV['ENABLE_BULLET']
gem 'pry-byebug', '~> 3.4.1', platform: :mri gem 'pry-byebug', '~> 3.4.1', platform: :mri
gem 'pry-rails', '~> 0.3.4' gem 'pry-rails', '~> 0.3.4'
......
if ENV['ENABLE_BULLET'] if defined?(Bullet) && ENV['ENABLE_BULLET']
require 'bullet' Rails.application.configure do
config.after_initialize do
Bullet.enable = true Bullet.enable = true
Bullet.bullet_logger = true
Bullet.console = true Bullet.console = true
Bullet.raise = Rails.env.test?
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment