From d21db0f18693839c61c858129be69022d07a1f2b Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 11 Dec 2017 21:33:00 +0530 Subject: [PATCH] add a test case to verify presence of registration_ip_address for staged users --- spec/controllers/users_controller_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 9547316b97d..24ad9d28f77 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -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