Sha256: 855a3c453eb36f237da7f10fda18a26e6b891194dfc8598ad05bbbc90ce6416a
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
module ExpressUi module ChecksForTesting # Returns boolean as to whether something is for testing # # For example, this can be used to # show styles/elements or any visual indication for the product owner # to easily distinguish a test/acceptance environment from production def for_testing? !Rails.env.production? && !Rails.env.development? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_ui-0.5.2 | app/helpers/express_ui/checks_for_testing.rb |
express_ui-0.5.1 | app/helpers/express_ui/checks_for_testing.rb |