Module: Test::Unit::Assertions

Defined in:
lib/custom_assertions.rb

Instance Method Summary collapse

Instance Method Details

#assert_sandboxed(creds) ⇒ Object

asserts that we a using sandbox credentials. Useful for destructive testing.

[View source]

3
4
5
# File 'lib/custom_assertions.rb', line 3

def assert_sandboxed(creds)
  assert_match(/SBX/, creds['UserName'], "you appear to be running with production credentials [#{creds.inspect()}]")
end