Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: oubleDog.db.create_item(:name => 'burger', :price => 7) ### Stub authentication # Create a user user = db.create_user(:username => 'alice', :password => 'pass1', :admin => true) # Sign in that user result = DoubleDog::SignIn.new.run(:username => 'alice', password: 'pass1') # Store the session id in a global variable $session_id = result[:session_id] Source: http://pastie.org/pastes/9527639/download
↧