RubyoffRails/Episode6 — pull request #2 by ralphos (2012-05-18 06:27:00+00:00)
Title: Homework Complete

Surprised myself with the homework for this episode. I managed to write my first TDD test yesterday morning and it somehow clicked and I was able to write all my code for this exercise using TDD (guess your videos are working!).

I tried to mix up the rspec syntax but mostly ended up resorting to 'eq' - this seems like the most common kind of assertion to use?

With regard to specific tasks, I wasn't sure what was meant by implementing the ==(other) method since the == method already exists? What were you intending the new method to return?

I also had a little difficulty testing with the class variables as they were being set within my spec files and when I wanted to test whether a 'blue honda' was included I was always getting the 'red ferrari' I had used in my earlier tests for @@vehicle... I ended up just using 'blue honda' in the earlier tests. I think it's fine because the code should return only blue hondas notwithstanding what the tests say! (It does all pass now).

Will continue on this weeks homework tomorrow! Thx!