Fix editing beers
Extract setting breweries and styles into a method
Take rspec-rails into use
Generated test file for model User
Test that constructor sets the username correctly
Test that User is not saved without a password
Test that User is saved with a proper password
Test that User with two ratings gets a proper average rating
Refactored tests to avoid repetition
Test that User is not created if the password is too short
Test that user is not created if the password has no numbers
Test that Beer is created if name and style is set
Test that name and style is set correctly
Test that beer is not created wihtout a name
Change double quotes to single quotes
More double quotes to single quotes
Test that beer is not created without style being set
Take factory_girl_rails gem into use
Define object factories and modify user tests to use them
Implement favorite_beer for user

Also wrote unit tests for favorite_beer.