dancroak-webster 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- 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)
|