mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
optimize spec
This commit is contained in:
parent
ff6dda85b7
commit
1d43d7f136
1 changed files with 4 additions and 2 deletions
|
@ -1044,8 +1044,10 @@ describe UsersController do
|
|||
|
||||
result = ::JSON.parse(response.body)
|
||||
expect(result["success"]).to eq(true)
|
||||
expect(User.find_by_email(staged.email).staged).to eq(false)
|
||||
expect(User.find_by_email(staged.email).registration_ip_address).to be_present
|
||||
|
||||
active_user = User.find_by_email(staged.email)
|
||||
expect(active_user.staged).to eq(false)
|
||||
expect(active_user.registration_ip_address).to be_present
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue