Module: Test::Unit::Assertions

Defined in:
lib/custom_assertions.rb

Instance Method Summary collapse

Instance Method Details

#assert_sandboxed(creds) ⇒ Object



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

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