-
Notifications
You must be signed in to change notification settings - Fork 0
Resources
JenDiamond edited this page Jul 22, 2017
·
16 revisions
- https://www.ruby-lang.org/
- http://sass-lang.com/
- http://sass-lang.com/documentation/file.SASS_REFERENCE.html
- https://medium.com/@ricardozea/sass-for-beginners-the-friendliest-guide-about-how-to-install-use-sass-on-windows-22ff4a32c1f7
- https://github.com/alice-em/sass-demo
http://makahiki.readthedocs.io/en/latest/developer-guide-heroku-in-a-nutshell.html
require 'test_helper'
class RecipesTest < ActionDispatch::IntegrationTest
def setup
@chef = Chef.create!(chefname: 'jen', email: 'jen@email.com',
password:'secretpswd', password_confirmation: 'secretpswd')
@recipe = Recipe.create(name: 'Meat Pile', description: 'Hamburger and spices', chef: @chef)
@recipe2 = @chef.recipes.build(name: 'Eggs in a Cloud',
description: 'Separate eggs, putting whites in 1 large bowl and yolks in 4 separate small bowls.
Whip whites until stiff peaks form. Fold in cheese, chives and bacon. Spoon into 4 mounds on
parchment-lined baking sheet; make a deep well in center of each.')
@recipe2.save
end
test 'should get recipes/index page' do
get recipes_path
assert_response :success
end
test 'should get a list of recipes' do
get recipes_path
assert_template 'recipes/index'
assert_select 'a[href=?]', recipe_path(@recipe), text: @recipe.name
assert_select 'a[href=?]', recipe_path(@recipe2), text: @recipe2.name
end
test 'should get recipes/show page' do
sign_in_as(@chef, 'secretpswd')
get recipe_path(@recipe)
assert_response :success
assert_template 'recipes/show'
assert_match @recipe.name, response.body
assert_match @recipe.description, response.body
assert_match @chef.chefname, response.body
assert_select 'a[href=?]', edit_recipe_path(@recipe), text: 'Edit'
assert_select 'a[href=?]', recipe_path(@recipe), text: 'Delete'
assert_select 'a[href=?]', chef_path(@recipe.chef), text: 'View your profile'
end
test 'create new, valid recipe' do
sign_in_as(@chef, 'secretpswd')
get new_recipe_path
assert_template 'recipes/new'
name_of_recipe = 'Choki'
description_of_recipe = 'Cocoa, butter, vanilla, artificial sweetner, mct oil'
assert_difference 'Recipe.count', 1 do
post recipes_path, params: { recipe: { name: name_of_recipe, description: description_of_recipe }}
end
follow_redirect!
assert_match name_of_recipe.capitalize, response.body
assert_match description_of_recipe, response.body
end
test 'reject invalid recipe submissions' do
sign_in_as(@chef, 'secretpswd')
get new_recipe_path
assert_template 'recipes/new'
assert_no_difference 'Recipe.count' do
post recipes_path, params: { recipe: { name: " ", description: " " } }
end
assert_template 'recipes/new'
assert_select 'h2.panel-title'
assert_select 'div.panel-body'
end
end
https://github.com/typicode/json-server
- https://www.timeout.com/los-angeles/things-to-do/los-angeles-metro-guide
- http://laist.com/2013/07/26/metro_adventures_what_to_do_on_the_red_line.php
- http://laist.com/2013/07/12/metro_adventures_what_to_do_on_the_gold_line.php
- http://www.discoverlosangeles.com/blog/los-angeles-public-transit
- http://www.discoverlosangeles.com/explore
- http://www.discoverlosangeles.com/blog/go-metro-and-go-everywhere-la
- http://www.discoverlosangeles.com/blog/100-free-things-do-los-angeles
- http://www.discoverlosangeles.com/blog/hidden-gems-downtown-los-angeles
- http://www.discoverlosangeles.com/blog/walking-tour-sawtelle-japantown
- http://www.discoverlosangeles.com/blog/guide-noho-arts-district
- http://www.discoverlosangeles.com/blog/discover-los-angeles-street-art-car-free
- http://www.discoverlosangeles.com/blog/discover-downtown-los-angeles-car-free
- http://neighborhoods.discoverlosangeles.com/
- http://www.discoverlosangeles.com/blog/dining-metro
- http://www.discoverlosangeles.com/tourism
- https://www.discoverlosangeles.com/user/470917
- https://performance-lacity.data.socrata.com/Government/Community-Garden-Locations-in-the-City-of-Los-Ange/5c7p-j4qf
- https://performance-lacity.data.socrata.com/Government/Farmers-Market-Locations-in-City-of-Los-Angeles/2jee-ck6s
- http://www.latimes.com/local/lanow/la-me-ln-bus-ridership-study-20170518-story.html
- https://www.metro.net
- http://developer.metro.net
- https://twitter.com/MetroLosAngeles
- http://thesource.metro.net
- http://thesource.metro.net/2015/08/05/results-of-metros-latest-customer- survey/
- https://www.metro.net/news/research/
