Method: Sensu::Utilities#testing?
- Defined in:
- lib/sensu/utilities.rb
#testing? ⇒ TrueClass, FalseClass
Determine if Sensu is being tested, using the process name. Sensu is being test if the process name is “rspec”,
17 18 19 |
# File 'lib/sensu/utilities.rb', line 17 def testing? File.basename($0) == "rspec" end |