<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,10 +1,10 @@
-module Webster
+class Webster
 
   DICTIONARY = File.open(File.join(File.dirname(__FILE__), 'words')) do |file|
     file.readlines.collect {|each| each.chomp}
   end
   
-  def random
+  def random_word
     DICTIONARY[rand(DICTIONARY.size)]
   end
 </diff>
      <filename>lib/webster.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,8 +5,6 @@ require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;webster&quot;)
 
 class WebsterTest &lt; Test::Unit::TestCase
 
-  include Webster
-
   context &quot;#dictionary&quot; do
     setup do
       @dictionary = Webster::DICTIONARY
@@ -21,17 +19,18 @@ class WebsterTest &lt; Test::Unit::TestCase
 
     should &quot;not contain offensive words or offensive-sounding words&quot; do
       @blacklist.each do |word|
-        assert !@dictionary.include?(word), &quot;The blacklist word, #{word}, is in the dictionary.&quot;
+        assert ! @dictionary.include?(word), &quot;The blacklist word, #{word}, is in the dictionary.&quot;
       end
     end
   end
 
-  context &quot;#random&quot; do
+  context &quot;#random_word&quot; do
     setup do
-      @random = random
+      webster = Webster.new
+      @random = webster.random_word
     end
 
-    should &quot;be a word&quot; do
+    should &quot;be a String&quot; do
       assert_kind_of String, @random
     end
 </diff>
      <filename>test/webster_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aa78429d181fd8dde6791fe9d7d1a27bcb3bfa8c</id>
    </parent>
  </parents>
  <author>
    <name>Jared Carroll</name>
    <email>jcarroll@thoughtbot.com</email>
  </author>
  <url>http://github.com/dancroak/webster/commit/bd526412bc25e5db2de84d518a908e3f068dbc44</url>
  <id>bd526412bc25e5db2de84d518a908e3f068dbc44</id>
  <committed-date>2009-01-08T14:55:36-08:00</committed-date>
  <authored-date>2009-01-08T14:55:36-08:00</authored-date>
  <message>converted Webster from a module into a class, renamed #random to #random_word</message>
  <tree>67737b70a65a26c4837a8ac06c9d3880f39d60b4</tree>
  <committer>
    <name>Jared Carroll</name>
    <email>jcarroll@thoughtbot.com</email>
  </committer>
</commit>
