Skip to content

Instantly share code, notes, and snippets.

@cherimarie
cherimarie / cookbook.md
Last active February 23, 2023 16:47
Laravel Testing Cookbook

Use these checklists to ensure you’re testing the correct things for each type of code change.

Controller endpoint:

Permissions. Users without the necessary role or permissions get a 403 response. Users with the necessary permissions get a 200 response. Validations For each required parameter, requests without it get an error response. For each parameter with other kinds of validations, requests with invalid values get an error response.

@cherimarie
cherimarie / Pets.rb
Last active August 29, 2015 14:00
Pets Array
$pets = []
$pets << {
:name => 'Lallo',
:nocturnal => false,
:breed => 'Schnauzer',
:talents => ['napping', 'rolling over', 'playing dead'],
:legs => 4
}
$pets << {
@cherimarie
cherimarie / Adv Rails Final Questions
Last active December 18, 2015 08:59
Final project questions for UW PCE Advanced Rails course.
What's the name of your app?
Beerdar
What does it do?
Shows the user happy hours nearby, sorted by proximity, in either a map or list view, optimized for use on mobile devices.
What's the GitHub url?
https://github.com/cherimarie/beerdar
What's the production url?