Saturday, April 13, 2013

Factory Girl & after_initialize

If you're using Factory Girl with your RSpec tests and you are using the after_initialize callback, you might be wondering why your tests aren't passing, and then come to realize that the after_initialize callback event is never triggering. Luckily, there's a simple fix. Be sure to add something like this...

after(:build) {|instanace| instance.after_initialize_callback_method }

inside of your factory.

Sunday, March 31, 2013

Learning Resource from Ex-Boot at DBC

Even though Dev Bootcamp has been a great resource for learning, most people still learn best by repetition, and to that end I present you, and leave for myself, the following online resource...

http://www.codequizzes.com/

which is essentially 'cliff's notes' for web developers.

Jeopary Live @ DBC

I've been attending Dev Bootcamp for the past 6 weeks, and I haven't written a single blog post. So, without further ado, here's my first...

One particular assignment at DBC was to create a flash-card-like game, and in response, myself and 3 of my fellow 'boots' came up with the following...

http://obscure-lowlands-8808.herokuapp.com

Special shout out to Matthew, for informing me about the long list of Jeopardy question we ended up using, and especially Ryan for obtaining them originally.