mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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)
|
result = ::JSON.parse(response.body)
|
||||||
expect(result["success"]).to eq(true)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue