Hello thoughtbot folks,
Reading through upcase-exercises code, I saw something in initializers, and I’m wondering if there is a reason behind it or not.
In https://github.com/thoughtbot/upcase-exercises/blob/master/config/initializers/pusher.rb, you wrap initialization code a
if defined?(PusherFake) instead of a consistent
if Rails.env.test? || Rails.env.development?.
Is there a specific reason, or those are completely equivalent?