jatwell93 / rubyproject

1 stars 1 forks source link

Gravatar ... in recipe views #53

Open Mirv opened 7 years ago

Mirv commented 7 years ago

removed for tests .... need to add back eventually

Mirv commented 7 years ago

FYI....I need to work on the recipe stuff still to get that feature back in there while not crashing tests.

jatwell93 commented 7 years ago

Is that crashing the tests because it's from a 3rd party? Still trying to get my head around tests

Mirv commented 7 years ago

It was posting a template error - I fixed this by querying to ensure nothing nil got through to be called by the views. Controller Tests are kind of odd...everyone agrees on this...basically need to be fed all the params via <ControllerVariableName: { <column_name>: <value>, ... } but they also need to be fed the database stuff & then told which routes to call to get the controllers going...in rails 5 they don't use controller tests, instead using integration as controller tests are just too weird to grasp for most people.