<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-module Webster 
+class Webster 
   module Shoulda
     # Example:
     #  context &quot;Subscription#activation_code&quot; do</diff>
      <filename>shoulda_macros/webster.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 require 'test/unit'
 require 'rubygems'
 require 'shoulda'
+require File.join(File.dirname(__FILE__), '..', 'shoulda_macros', 'webster')
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;webster&quot;)
 
 class WebsterTest &lt; Test::Unit::TestCase
@@ -27,32 +28,10 @@ class WebsterTest &lt; Test::Unit::TestCase
   context &quot;#random_word&quot; do
     setup do
       webster = Webster.new
-      @random = webster.random_word
+      @word = webster.random_word
     end
 
-    should &quot;be a String&quot; do
-      assert_kind_of String, @random
-    end
-
-    should &quot;be downcase&quot; do
-      assert_equal @random, @random.downcase
-    end
-
-    should &quot;be greater than or equal to five characters long&quot; do
-      assert @random.length &gt;= 5, &quot;#{@random.inspect}, length: #{@random.length}&quot;
-    end
-
-    should &quot;be less than or equal to nine characters long&quot; do
-      assert @random.length &lt;= 9, &quot;#{@random.inspect}, length: #{@random.length}&quot;
-    end
-
-    should &quot;not contain a carriage return&quot; do
-      assert_no_match /\n/, @random
-    end
-
-    should &quot;be a word in the dictionary&quot; do
-      assert Webster::DICTIONARY.include?(@random)
-    end
+    should_be_webster_word '@word'
   end
 
 end</diff>
      <filename>test/webster_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bd526412bc25e5db2de84d518a908e3f068dbc44</id>
    </parent>
  </parents>
  <author>
    <name>Jared Carroll</name>
    <email>jcarroll@thoughtbot.com</email>
  </author>
  <url>http://github.com/dancroak/webster/commit/c3b3c9c40b4c3e5ef7dcc3e6362ec5570ad2da9e</url>
  <id>c3b3c9c40b4c3e5ef7dcc3e6362ec5570ad2da9e</id>
  <committed-date>2009-01-09T10:55:02-08:00</committed-date>
  <authored-date>2009-01-09T10:55:02-08:00</authored-date>
  <message>refactored test to use shoulda macro</message>
  <tree>75bb9eea4536e6be6417eb9b6fb49f79242723a2</tree>
  <committer>
    <name>Jared Carroll</name>
    <email>jcarroll@thoughtbot.com</email>
  </committer>
</commit>
