Create a gist now

Instantly share code, notes, and snippets.

@ddd /rspec Secret
Created Oct 23, 2012

[DEVISE] Devise.apply_schema is deprecated and has no effect. Please remove it.
[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.
Validation Checks
should be an instance of User(id: integer, first_name: string, last_name: string, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, address_street_1: string, address_street_2: string, address_city: string, address_state: string, address_postal: string, phone_number: string, created_at: datetime, updated_at: datetime)
should be the proper class
should require first_name to be set
should require last_name to be set
should require email to be set
should require password to be set
should not allow first_name to be set to "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
should not allow last_name to be set to "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
should have many roles
should have many lawfirms
should have many agencies
should have many jobs
should have many token_transactions
Finished in 0.37888 seconds
13 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment