cloud_controller/spec/support/cloud_spec_helpers.rb
# Convenience method for constructing and saving a regular user.
Convenience method for constructing and saving a regular user.
Convenience method for constructing and saving a regular user .
def build_user(email, user_password = 'password')
    user = User.new :email => email
    user.set_and_encrypt_password user_password
    user.save!
    user
  end
def build_user ( email , user_password = 'password' ) user = User . new :email => email user . set_and_encrypt_password user_password user . save! user end
Convenience method for constructing and saving a regular user.
Convenience method for constructing and saving a regular user .
email
user_password