generalassembly/ga-ruby-on-rails-for-devs — pull request #38 by dimroc (2012-05-18 03:31:01+00:00)
Title: New assignment for lecture 7.1

Tasks the students with the following:

TODO:
=====

1. Create an Employee model with the following fields:
* name
* address
* start_date
2. Create a Role model with the following fields:
* name:string
* department:string
3. Create an association where a role has many employees
* Add a spec using the shoulda matcher
4. Create an association where the employee belongs to a role
* Test drive using a shoulda matcher
5. Add validations:
* validate the presence of all fields
* Have specs use shoulda matchers to ensure validations
6. Create a fabricator that creates a valid Employee
* Write a spec to ensure it is valid

See the Employee and Role model specs (employee/role_spec.rb) for contexts and todos