Module: Test::Unit::Assertions
- Defined in:
- lib/custom_assertions.rb
Instance Method Summary collapse
-
#assert_sandboxed(creds) ⇒ Object
asserts that we a using sandbox credentials.
Instance Method Details
permalink #assert_sandboxed(creds) ⇒ Object
asserts that we a using sandbox credentials. Useful for destructive testing.
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 |