Skip to content

Instantly share code, notes, and snippets.

@jendiamond
Last active December 20, 2015 14:09
Show Gist options
  • Select an option

  • Save jendiamond/6144433 to your computer and use it in GitHub Desktop.

Select an option

Save jendiamond/6144433 to your computer and use it in GitHub Desktop.
Week 3 Day 14

More Gem Production and Testing

Alt gems

We were both reading about Rspec in the Pragmatic Programmer's The RSpec Book (Behaviour-Driven Development with RSpec, Cucumber, and Friends) by David Chelimsky

We also were looking at Peepcode's Rspec Screencast.

Jen's Friday


I worked on my gem last night at the Ruby Study Group and I swear it was working. This morning I ran it and ERROR. I tried so many different things to fix it that I finally lost the thread. I decided to just go through our tutorial and create it again from scratch but there are definitely some missing parts we need to fill in.

I spent some more time in my .bashrc file. Apparently I have become obsessed with it. My problem was that it was hard to read my errors because my prompt was the same color as everything else so it all blurred together. I used a combination of this site: https://wiki.archlinux.org/index.php/Color_Bash_Prompt and this site: http://ubuntugenius.wordpress.com/2011/07/11/how-to-change-the-command-line-prompt-colour-in-the-ubuntulinux-terminal/ and the Terminal's Profile Preferences a. Hooray, it is finally readable.

Joyce's Friday


I read the Rspec and bdd page on jumpstartlab’s website. I worked on a rspec test to pass for the Lorem gem with the help of Jessica Suttles and Andre Arko. I assumed I wrote the test wrong and didn’t really look at the error messages. With their help, going over the 2 failures that came up, I got a test to pass. Yay. I had glossed and skimmed the test, which led to reading on how to read error messages. 😅

Our Resources

Rspec

http://tutorials.jumpstartlab.com/topics/internal_testing/rspec_and_bdd.html

http://it-ebooks.info/book/77/

Understanding Error Messages

http://stackoverflow.com/questions/17749403/how-do-i-read-error-messages-in-ruby-and-ruby-on-rails

http://philcrissman.com/2010/11/08/how-to-read-error-messages-for-ruby-on-rails/

http://modernlegend.github.io/blog/2013/02/28/how-to-read-ruby-errors/

@jhhere
Copy link

jhhere commented Aug 3, 2013

I read the Rspec and bdd page on jumpstartlab’s website. I worked on a rspec test to pass for the Lorem gem with the help of Jessica Suttles and Andre Arko. I assumed I wrote the test wrong and didn’t really look at the error messages. With their help, going over the 2 failures that came up, I got a test to pass. yay. I had glossed and skimmed the test, which led to reading on how to read error messages. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment