### 6.1.5 Updating user objects

```ruby

user.email = 'foo@bar.com'
user.save # skipping this means it doesn't save

# update and save all attributes
user.update_attributes(name: "The Dude", email: "dude@abides.org")

# update and save single attribute
user.update_attribute name: "The Dude"

``````
## 6.2 User Validations

Enforce constraints on `name` and `email`
### 6.2.1 Initial User Tests
$ rake db:migrate
$ rake test:prepare
Upgrade rspec 2 to 3 as per https://www.relishapp.com/rspec/rspec-rails/docs/upgrade#default-helper-files