dancroak-webster 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/shoulda_macros/webster.rb +3 -3
- metadata +1 -1
data/shoulda_macros/webster.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
module Webster
|
2
2
|
module Shoulda
|
3
3
|
# Example:
|
4
4
|
# context "Subscription#activation_code" do
|
@@ -24,7 +24,7 @@ class Webster
|
|
24
24
|
"but is #{word.length} characters long."
|
25
25
|
assert_no_match /\n/, word,
|
26
26
|
"#{word} contains a carriage return."
|
27
|
-
assert Webster.
|
27
|
+
assert Webster::DICTIONARY.include?(word),
|
28
28
|
"#{word} should be a word in the Webster dictionary"
|
29
29
|
end
|
30
30
|
end
|
@@ -32,4 +32,4 @@ class Webster
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
Test::Unit::TestCase.extend(Webster::Shoulda)
|
35
|
+
Test::Unit::TestCase.extend(Webster::Shoulda)
|