spectus 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31ef6ee6737598afad47492b26efadd3a2b47f6a
4
- data.tar.gz: 9284aeab67d2c5648ce9a89c0a61ecd33470db69
3
+ metadata.gz: 6c992f6ab91e6d041dab4fc49673068aa8e66999
4
+ data.tar.gz: 6ecffbc06cbd4a6e042af544d2e983e82587149c
5
5
  SHA512:
6
- metadata.gz: 18466599af7ec896dc1a7ea02c1c3eefc2f4b954bd5e6858357a2bb349164f654df705c307de0bc765539d5f4ba57754247117a1200c46dae77ab0dac9001221
7
- data.tar.gz: 3ad1d7be4761e0072168921245c0fd726720db3cd17634795a4491dd78e3a09e74c2299aae5276774964ca650c4656461b4561203aff78bbd67e584faf7992af
6
+ metadata.gz: 45335dc2b296fdda0f3cb629110c772d4f22e4c059dcacc320e926eb29ac01544a276e0742aa259bbb0142bb12c30e71e5d3abebaa2061c3ccb5b3ed4af82e54
7
+ data.tar.gz: b3f587d59d085738557acf896141c5d094a831c8dd8bff147c6652ec87366e36885ae6847fe2585bbb344985be550f19bf60584bca42442f54d8c0b2434ab7ca
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -71,7 +71,7 @@ Example of test without isolation:
71
71
 
72
72
  ```ruby
73
73
  greeting = 'Hello, world!'
74
- it { greeting.gsub!('world', 'Alice') }.MUST eql: 'Hello, Alice!'
74
+ it { greeting.gsub!('world', 'Alice') }.MUST eql 'Hello, Alice!'
75
75
  # => #<Spectus::Result::Pass:0x007f94b13de620 @message="Pass: Expected \"Hello, Alice!\" to eql \"Hello, Alice!\".", @subject=#<Proc:0x007f94b13deeb8@(irb):2>, @challenge=#<Defi::Challenge:0x007f94b13dee18 @method=:call, @args=[]>, @actual="Hello, Alice!", @expected={:Eql=>"Hello, Alice!"}, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
76
76
  greeting # => "Hello, Alice!"
77
77
  ```
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.0.1
@@ -0,0 +1 @@
1
+ eec56e5b79205d9e4e3f972df15555f372bbc02ac4206e20862722ccfba23dd7bb318375187399a5c65b5f1f7f18f32198518420ec63ec215bc0afac72708a36
@@ -26,7 +26,7 @@ module Spectus
26
26
  # definition is an absolute requirement of the specification.
27
27
  #
28
28
  # @example _Absolute requirement_ definition
29
- # it { 'foo'.upcase }.MUST eql: 'FOO'
29
+ # it { 'foo'.upcase }.MUST eql 'FOO'
30
30
  #
31
31
  # @param m [#matches?] The matcher.
32
32
  #
@@ -36,7 +36,7 @@ module Spectus
36
36
  end
37
37
 
38
38
  # @example _Absolute requirement_ definition with isolation
39
- # it { 'foo'.upcase }.MUST! eql: 'FOO'
39
+ # it { 'foo'.upcase }.MUST! eql 'FOO'
40
40
  #
41
41
  # @see MUST
42
42
  def MUST!(m)
@@ -47,7 +47,7 @@ module Spectus
47
47
  # definition is an absolute prohibition of the specification.
48
48
  #
49
49
  # @example _Absolute prohibition_ definition
50
- # it { 'foo'.size }.MUST_NOT equal: 42
50
+ # it { 'foo'.size }.MUST_NOT equal 42
51
51
  #
52
52
  # @param m [#matches?] The matcher.
53
53
  #
@@ -57,7 +57,7 @@ module Spectus
57
57
  end
58
58
 
59
59
  # @example _Absolute prohibition_ definition with isolation
60
- # it { 'foo'.size }.MUST_NOT! equal: 42
60
+ # it { 'foo'.size }.MUST_NOT! equal 42
61
61
  #
62
62
  # @see MUST_NOT
63
63
  def MUST_NOT!(m)
@@ -70,7 +70,7 @@ module Spectus
70
70
  # carefully weighed before choosing a different course.
71
71
  #
72
72
  # @example _Recommended_ definition
73
- # it { 'foo'.valid_encoding? }.SHOULD equal: true
73
+ # it { 'foo'.valid_encoding? }.SHOULD equal true
74
74
  #
75
75
  # @param m [#matches?] The matcher.
76
76
  #
@@ -80,7 +80,7 @@ module Spectus
80
80
  end
81
81
 
82
82
  # @example _Recommended_ definition with isolation
83
- # it { 'foo'.valid_encoding? }.SHOULD! equal: true
83
+ # it { 'foo'.valid_encoding? }.SHOULD! equal true
84
84
  #
85
85
  # @see SHOULD
86
86
  def SHOULD!(m)
@@ -94,7 +94,7 @@ module Spectus
94
94
  # before implementing any behavior described with this label.
95
95
  #
96
96
  # @example _Not recommended_ definition
97
- # it { ''.blank? }.SHOULD_NOT raise_exception: NoMethodError
97
+ # it { ''.blank? }.SHOULD_NOT raise_exception NoMethodError
98
98
  #
99
99
  # @param m [#matches?] The matcher.
100
100
  #
@@ -104,7 +104,7 @@ module Spectus
104
104
  end
105
105
 
106
106
  # @example _Not recommended_ definition with isolation
107
- # it { ''.blank? }.SHOULD_NOT! raise_exception: NoMethodError
107
+ # it { ''.blank? }.SHOULD_NOT! raise_exception NoMethodError
108
108
  #
109
109
  # @see SHOULD_NOT
110
110
  def SHOULD_NOT!(m)
@@ -124,7 +124,7 @@ module Spectus
124
124
  # option provides.)
125
125
  #
126
126
  # @example _Optional_ definition
127
- # it { 'foo'.bar }.MAY match: /^foo$/
127
+ # it { 'foo'.bar }.MAY match /^foo$/
128
128
  #
129
129
  # @param m [#matches?] The matcher.
130
130
  #
@@ -134,7 +134,7 @@ module Spectus
134
134
  end
135
135
 
136
136
  # @example _Optional_ definition with isolation
137
- # it { 'foo'.bar }.MAY! match: /^foo$/
137
+ # it { 'foo'.bar }.MAY! match /^foo$/
138
138
  #
139
139
  # @see MAY
140
140
  def MAY!(m)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -187,6 +187,7 @@ files:
187
187
  - checksum/spectus-2.9.0.gem.sha512
188
188
  - checksum/spectus-2.9.1.gem.sha512
189
189
  - checksum/spectus-2.9.2.gem.sha512
190
+ - checksum/spectus-3.0.0.gem.sha512
190
191
  - lib/spectus.rb
191
192
  - lib/spectus/expectation_target.rb
192
193
  - lib/spectus/report.rb
@@ -220,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
221
  version: '0'
221
222
  requirements: []
222
223
  rubyforge_project:
223
- rubygems_version: 2.4.5.1
224
+ rubygems_version: 2.4.5
224
225
  signing_key:
225
226
  specification_version: 4
226
227
  summary: Expectation library with RFC 2119 keywords.
metadata.gz.sig CHANGED
Binary file