|
1 | 1 | # For week of 24 November 2014
|
2 | 2 |
|
3 | 3 | * Ruby, Not Rails, see it at http://onebrokeb.com/ruby-not-rails
|
4 |
| - - [ ] Reserve the domain on Black Friday |
5 |
| - - [ ] Get the app hosted on the domain |
| 4 | + - [x] Reserve the domain on Black Friday |
| 5 | + - [x] Get the app hosted on the domain |
6 | 6 | - [ ] Interview Julian (or whomever) to try it out and make sure you like the questions and the way the site looks
|
7 | 7 | - [ ] Amend the process as necessary
|
8 | 8 | - [ ] Update the site as necessary
|
|
16 | 16 | But Feel free to edit this as it changes -- or discard it in favour of your own way of working :)
|
17 | 17 | I probably also included more than I need to, but I feel like it goes much faster to have it broken down.
|
18 | 18 | Plus I wanted to think through it a bit.
|
19 |
| - - [ ] Make the Rails App |
20 |
| - - [ ] Set up RSpec |
| 19 | + - [x] Make the Rails App |
| 20 | + - [x] Set up RSpec |
21 | 21 | - [ ] Acceptance test (in RSpec or Cucumber or w/e) You can use the one I came up with, translating as necessary, or write your own.
|
22 | 22 | - [ ] Begin working through the acceptance test, creating things as you need them. It will probably go something like the following
|
23 |
| - - [ ] Root route points to the BooksController#index |
24 |
| - - [ ] BooksController and the index method, which gets the books |
| 23 | + - [x] Root route points to the BooksController#index |
| 24 | + - [x] BooksController and the index method, which gets the books |
25 | 25 | - [ ] Book model (schema we discussed is below)
|
26 | 26 | - [ ] `books/index.html.erb`
|
27 | 27 | - [ ] Test and logic to find how many copies of a book are available (probably it's the number of copies that have a checkout date with no checkin date)
|
28 |
| - - [ ] `BooksController#show` and `books/show.html.erb` |
29 |
| - - [ ] `GET /books/:id/borrow` route to `BooksController#borrow_form` with view `books/borrow_form.html.erb` |
30 |
| - - [ ] A class that takes a book and hash of |
| 28 | + - [x] `BooksController#show` and `books/show.html.erb` |
| 29 | + - [x] `GET /books/:id/borrow` route to `BooksController#borrow_form` with view `books/borrow_form.html.erb` |
| 30 | + - [x] A class that takes a book and hash of |
31 | 31 | `{name: "Betsy Book Borrower", phone: "555-555-5555", email: "[email protected]"}`
|
32 | 32 | and creates a status for it (hmm, looks like it might need a book id, too,
|
33 | 33 | since we won't know the copy until you give it to them).
|
34 | 34 | I'd probably put this in something like `app/use_cases/borrow_book.rb`,
|
35 | 35 | your controller will ultimately delegate to it.
|
36 | 36 | You'll want to drive this one with unit level tests.
|
37 |
| - - [ ] Email... uhm, I have no idea, I've never set this up :D |
38 |
| - - [ ] `GET /statuses/:id/edit` to `StatusesController#edit` with `statuses/edit.html.erb` view |
39 |
| - - [ ] The `StatusesController` is protected by basic http auth |
40 |
| - - [ ] `PUT /statuses/:id` to `StatusesController#update` which renders the edit view |
41 |
| - - [ ] Have a drink :D |
| 37 | + - [x] Email... uhm, I have no idea, I've never set this up :D |
| 38 | + - [x] `GET /statuses/:id/edit` to `StatusesController#edit` with `statuses/edit.html.erb` view |
| 39 | + - [x] The `StatusesController` is protected by basic http auth |
| 40 | + - [x] `PUT /statuses/:id` to `StatusesController#update` which renders the edit view |
| 41 | + - [x] Have a drink :D |
42 | 42 | * Acceptance test inspiration (not Gherkin, but not too far off, probably implement it as Cucumber or an RSpec feature test)
|
43 | 43 | ```
|
44 | 44 | As someone from the Rails Girls DC meetup
|
|
0 commit comments