From 016b216d95f8aae2757578eb5c8531fb0e93f3b7 Mon Sep 17 00:00:00 2001 From: MatBi Date: Mon, 18 Apr 2016 18:15:32 +0800 Subject: [PATCH] Change the name of variables to keep the tests consistent --- test/models/confirmable_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/models/confirmable_test.rb b/test/models/confirmable_test.rb index 847fe2f9..8199e831 100644 --- a/test/models/confirmable_test.rb +++ b/test/models/confirmable_test.rb @@ -488,8 +488,8 @@ class ReconfirmableTest < ActiveSupport::TestCase end test 'should not require reconfirmation after creating a record' do - user = create_admin - assert !user.pending_reconfirmation? + admin = create_admin + assert !admin.pending_reconfirmation? end test 'should not require reconfirmation after creating a record with #save called in callback' do @@ -497,7 +497,7 @@ class ReconfirmableTest < ActiveSupport::TestCase after_create :save end - user = Admin::WithSaveInCallback.create(valid_attributes.except(:username)) - assert !user.pending_reconfirmation? + admin = Admin::WithSaveInCallback.create(valid_attributes.except(:username)) + assert !admin.pending_reconfirmation? end end