Browse files

Gists were not showing

  • Loading branch information...
1 parent 957a9aa commit c97f790db30ed1a3a6706e8ac5087b7565e347a0 @luisalima committed Dec 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/_posts/2012-12-19-how-i-test-part-ii.markdown
@@ -24,9 +24,11 @@ You actually get a guide of what to test by looking at the cheat sheet! It's too
Furthermore, it's great for lazy people and it's definitely easier on the eyes. Just check the following example:
<script src="">
{% gist 4339197 shoulda_model.rb %}
@@ -37,7 +39,7 @@ What I test exactly with shoulda
I go through the whole list of shoulda macros for models, and I just use and abuse them. Since the cheat sheet is not up to date, I created a new one (just for models for now) at:
-{% gist 4339490 %}
+{% gist 4339490 shoulda_cheat_model.rb %}
Yes, it's a bit tedious. But (1) you make sure that you are actually testing all these details, which is extremely useful when you are constantly refactoring your code, and (2) it's not that slow with the multiple cursors of Sublime Text 2. You just need to have a scaffold.

0 comments on commit c97f790

Please sign in to comment.