How to disable in test env?
guillaumebriday opened this issue · 2 comments
guillaumebriday commented
I would like to disable this gem in test env. Is it possible?
Thanks!
bheemreddy181-zz commented
you can group the gem like in gemfile
group :development, :production do
gem 'yahoo-weather'
end
sj26 commented
You could configure marginalia to have no components in your test environment. With no components, marginalia will not modify sql statements.
For example:
# config/environments/test.rb
# ...
Marginalia::Comment.components = []
or similar in your test or rspec helper, etc.
Or you could exclude it from your Gemfile using groups as above.