add a test case to verify presence of registration_ip_address for staged users

This commit is contained in:
Arpit Jalan 2017-12-11 21:33:00 +05:30
parent 39d0dae5fe
commit d21db0f186

View File

@ -1045,6 +1045,7 @@ 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
end
end