Skip to content

Instantly share code, notes, and snippets.

View emilford's full-sized avatar

Eric Milford emilford

View GitHub Profile
@emilford
emilford / 03-10-2017-Meredith-Eric.md
Last active March 10, 2017 20:52
03-10-2017 Pairing w/ Meredith

03-10-2017

Feature Tests

  • They are a good choice for happy path tests. Sad paths are often times tested elsewhere (e.g., a controller test).
  • They are like using a browser (just a headless one) and exercise the entire application stack.
  • They are generally slower to run than other types of tests.
  • They assert expectations mostly from the user's perspective (e.g., things visible to the user), but will occasionally need to assert an expectation against something only the application knows (e.g., Feedback.count)
@emilford
emilford / 03-09-2017-Meredith-Eric.md
Last active March 10, 2017 14:34
03-09-2017 Pairing w/ Meredith

03-09-2017

Rails Routing

In general, the Rails Routing from the Outside In guide is chock full of very useful information. It's a great reference for learning and remembering anything routes-related.

http://guides.rubyonrails.org/routing.html

Route Basics