Permalink
Browse files

updating shoulda macro

  • Loading branch information...
1 parent 675d6d7 commit cd948aadef7829da81da03e348a48aec87c9e7a3 Jared Carroll committed Dec 11, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 shoulda_macros/webster.rb
View
6 shoulda_macros/webster.rb
@@ -1,4 +1,4 @@
-class Webster
+module Webster
module Shoulda
# Example:
# context "Subscription#activation_code" do
@@ -24,12 +24,12 @@ def should_be_webster_word(word)
"but is #{word.length} characters long."
assert_no_match /\n/, word,
"#{word} contains a carriage return."
- assert Webster.new.dictionary.include?(word),
+ assert Webster::DICTIONARY.include?(word),
"#{word} should be a word in the Webster dictionary"
end
end
end
end
-Test::Unit::TestCase.extend(Webster::Shoulda)
+Test::Unit::TestCase.extend(Webster::Shoulda)

0 comments on commit cd948aa

Please sign in to comment.