My web application writes some kind of log during runtime.
I don't want to write this log when running my test suite using cucumber.
So, how can I check my current runtime environment (TEST, DEV or PROD)?
I'm looking for the C equivalent to i.e. :
// just run in debug mode
Try this for the if condition:
if ENV['RAILS_ENV'] == "test" # Insert Code Here end
(replace 'test' with 'development' or 'production' as needed)