public
Created

without stub

  • Download Gist
gistfile1.txt
1 2 3 4 5 6
1) UsersController if the user passes all the authorizations GET #show assigns the requested user to @user
Failure/Error: User.should_receive(:find).with("1").and_return(@user)
(<User(id: integer, 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, created_at: datetime, updated_at: datetime, phone: string, address: string, city: string, cap: string, partitaiva: string, ragionesociale: string) (class)>).find("1")
expected: 1 time
received: 2 times
# ./spec/controllers/users_controller_spec.rb:29:in `block (4 levels) in <top (required)>'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.