concept admin user in category rails

This is an excerpt from Manning's book Rails 4 in Action: Revised Edition of Rails 3 in Action.
Alter the existing before in spec/features/creating_projects_spec.rb and insert a line to log in as an admin user at the beginning of the before block.
To create admin users, you can add a check box on the form you use to create a new user. When this check box is selected and the User record is saved, that user will be an admin.

This is an excerpt from Manning's book Rails 3 in Action.
Oops. Three scenarios are broken. They failed because, for these features, you’re not signing in as an admin user—or, in fact, as any user!—which is now required for performing the actions in the scenario. You can fix these scenarios by signing in as an admin user.
To create admin users, you need a check box on the form that, when clicked, sets the user’s admin field to true. But, because the admin attribute isn’t on the list of accessible attributes (attr_accessible inside app/models/user.rb), it can’t be mass-assigned as the other fields can. Therefore, you must manually set this parameter in the controller before the user is saved.
Listing 7.24. features/creating_users.feature
Scenario: Creating an admin user When I fill in "Email" with "newadmin@ticketee.com" And I fill in "Password" with "password" And I check "Is an admin?" And I press "Create User" Then I should see "User has been created" And I should see "newadmin@ticketee.com (Admin)"