dancroak-webster 0.4.2 → 0.4.3
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/README.textile +1 -1
- data/VERSION.yml +1 -1
- data/shoulda_macros/webster.rb +4 -3
- metadata +1 -1
data/README.textile
CHANGED
data/VERSION.yml
CHANGED
data/shoulda_macros/webster.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
class Webster
|
2
2
|
module Shoulda
|
3
3
|
# Example:
|
4
4
|
# context "Subscription#activation_code" do
|
@@ -7,10 +7,11 @@ module Webster
|
|
7
7
|
# @code = subscription.set_activation_code
|
8
8
|
# end
|
9
9
|
#
|
10
|
-
# should_be_webster_word @code
|
10
|
+
# should_be_webster_word "@code"
|
11
11
|
#
|
12
12
|
def should_be_webster_word(word)
|
13
|
-
should "be webster word
|
13
|
+
should "be webster word" do
|
14
|
+
word = eval word
|
14
15
|
assert_kind_of String, word,
|
15
16
|
"#{word} is not a string but is a #{word.class}."
|
16
17
|
assert_equal word, word.downcase,
|