My-Solar-Garden / rails_backend

Application that allows users to maximize their garden’s efficiency and carbon sequestration. Users can track the health of their gardens through light, temperature, and moisture sensors connected to RaspberryPis.
1 stars 1 forks source link

Rails BE create new garden isn't creating new garden or user garden #62

Closed leahriffell closed 4 years ago

leahriffell commented 4 years ago

spec/requests/api/v1/garden_request_spec test: it 'can create a new garden' do

I think it looked like this test was passing because this line of code was in the test: user.gardens << garden. Shouldn't the controller be handling this action? It gives a false positive I believe.

I think this is why post requests from the FE aren't working.