Change the name of variables to keep the tests consistent
This commit is contained in:
parent
c87d8fda82
commit
016b216d95
|
@ -488,8 +488,8 @@ class ReconfirmableTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'should not require reconfirmation after creating a record' do
|
test 'should not require reconfirmation after creating a record' do
|
||||||
user = create_admin
|
admin = create_admin
|
||||||
assert !user.pending_reconfirmation?
|
assert !admin.pending_reconfirmation?
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'should not require reconfirmation after creating a record with #save called in callback' do
|
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
|
after_create :save
|
||||||
end
|
end
|
||||||
|
|
||||||
user = Admin::WithSaveInCallback.create(valid_attributes.except(:username))
|
admin = Admin::WithSaveInCallback.create(valid_attributes.except(:username))
|
||||||
assert !user.pending_reconfirmation?
|
assert !admin.pending_reconfirmation?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue