Skip to content

Instantly share code, notes, and snippets.

@michellebonat
Last active August 29, 2015 14:04
Show Gist options
  • Save michellebonat/46147aa71b656904aae5 to your computer and use it in GitHub Desktop.
Save michellebonat/46147aa71b656904aae5 to your computer and use it in GitHub Desktop.
Bloc full stack dev course suggestions
Checkpoint 8: Deploy to Heroku. I got the correct result but I could not tell from the course guide. So I ended up asking office hours. What they told me is that the correct result will show an error. This is expected. The error is "The page you were looking for doesn't exist." It will say this on the web page of your app. The reason is that there is nothing in your app yet.
Checkpoint 14: Intro to Classes. The first section on RSpec Class Errors is really helpful to understand RSpec. Would be great to somehow include these pointers in the RSpec section that comes earlier.
General comments:
- Give me a way to easily share my progress on social networks. Complete a checkpoint, be able to tweet it and post it on FB.
- Include a section on tips for reading the RSpec error messages. Here is an example provided by my awesome mentor John:
- Let's take apart the error message: exercise.rb:21: syntax error, unexpected '\n', expecting '=' (SyntaxError)
The first part (exercise.rb:21) tells us it's on line 21 of the code:
@title, @pages, @author
The next part is: unexpected '\n', expecting '='
\n is a coded representation of a carriage return or newline character, what you type when you hit 'enter' - since it's invisible, the sequence \n is used to represent it and make it visible.
So, what it's saying is "I saw a carriage return when I was expecting to see an equals sign" on that line in the settitleand_author() method.
- Let's look at the error message again: you can see it points to: exercise_spec.rb:8 where it's doing this:
b.title = "LOTR"
That means the test is looking for there to be a setter for 'title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment