Getting Get Requests
First of all, Cecilia from #rgsoc-teams, we hope you’re feeling more yourself.
Secondly, when trying to communicate (to someone remotely) what you’re actually inputing into your terminal, it’s possible to make a video capture of your screen online and send a link to your remote buddy. Just use ascii.io.
We weren’t able to access our localhost server using telnet so sent this to Konstantin:
Our mistake was failing to simply enter an empty line…
Why were we doing this? Because yesterday we started writing tests for Sinatra, focusing initially on all the HTTP requests. Using telnet is one way of seeing what the server response is. Useful for us to see what we would be testing for.
Actually Konstantin hand drew some requests/responses for us yesterday.
We also did a bit of reading at lunch from Sinatra: Up and Running. It has a nice little example app in Chapter 1 that lets you play Rock Paper Scissors with your computer. It’s super simple, but very instructive!
AND we wrote a few tests: GET returns 200 as a status, returns body as string, returns body as array; GET /hello returns the exected route.
More tomorrow.