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 CHANGED
@@ -24,7 +24,7 @@ h2. Shoulda macro
24
24
  @word = subscription.set_activation_code
25
25
  end
26
26
 
27
- should_be_webster_word @word
27
+ should_be_webster_word "@word"
28
28
 
29
29
  h2. Authors
30
30
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- patch: 2
2
+ patch: 3
3
3
  major: 0
4
4
  minor: 4
@@ -1,4 +1,4 @@
1
- module Webster
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 #{word}" do
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dancroak-webster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak