@@ -1,4 +1,12 @@
 module EnvironmentBannerHelper
+  def production_app?
+    Rails.env.production? && !app_name.include?("staging")
+  end
+
+  def app_name
+    ENV.fetch("HEROKU_APP_NAME") { "upcase-#{Rails.env}" }
+  end
+
   def current_branch
     if git_available?
       `git rev-parse --abbrev-ref HEAD`.chomp
module EnvironmentBannerHelper
  def current_branch
    if git_available?
      `git rev-parse --abbrev-ref HEAD`.chomp
    else
      ENV.fetch("CURRENT_BRANCH", "--branch-not-found--")
    end
  end

  def current_sha
    if git_available?
      `git log --oneline -1`
    else
      ENV.fetch("CURRENT_SHA", "--sha-not-found--")
    end
  end

  def git_available?
    to_dev_null = "> /dev/null 2>&1"
    system("which git #{to_dev_null} && git rev-parse --git-dir #{to_dev_null}")
  end
end

It doesn't look like there were any existing tests for these helpers.