spectus 3.0.1 → 3.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c992f6ab91e6d041dab4fc49673068aa8e66999
4
- data.tar.gz: 6ecffbc06cbd4a6e042af544d2e983e82587149c
3
+ metadata.gz: 367e1ad013970cab664e7acb54d3f3e9d71e6637
4
+ data.tar.gz: 4f6ac0e10e2c196a70d541865a01bf58288ab86c
5
5
  SHA512:
6
- metadata.gz: 45335dc2b296fdda0f3cb629110c772d4f22e4c059dcacc320e926eb29ac01544a276e0742aa259bbb0142bb12c30e71e5d3abebaa2061c3ccb5b3ed4af82e54
7
- data.tar.gz: b3f587d59d085738557acf896141c5d094a831c8dd8bff147c6652ec87366e36885ae6847fe2585bbb344985be550f19bf60584bca42442f54d8c0b2434ab7ca
6
+ metadata.gz: 3d4925d21b2bbfdfb686a907d39fe80f83930b5f45b8c5decc4e9e6b522f41e6b7edf388219b5ab4e108997ae2b872d1ad2a5adf8e6b030561508df7047782a2
7
+ data.tar.gz: 0d27442c87ea51c560c4ed2c848782035a4de546a96f601a8dcc3868bc06f0ece25cd5240b24094e8d30cbf6494a6a2481a4acabf6e5a73ab3c4ddba3cd0e3c0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -63,7 +63,7 @@ Example of test in isolation:
63
63
  ```ruby
64
64
  greeting = 'Hello, world!'
65
65
  it { greeting.gsub!('world', 'Alice') }.MUST! eql 'Hello, Alice!'
66
- # => #<Spectus::Result::Pass:0x007fc03bb56a78 @message="Pass: Expected \"Hello, Alice!\" to eql \"Hello, Alice!\".", @subject=#<Proc:0x007fc03bb57248@(irb):2>, @challenge=#<Defi::Challenge:0x007fc03bb56dc0 @method=:call, @args=[]>, @actual="Hello, Alice!", @expected={:Eql=>"Hello, Alice!"}, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
66
+ # => #<Spectus::Result::Pass:0x007fa5022d8760 @message="Pass: Expected \"Hello, Alice!\" to eql \"Hello, Alice!\".", @subject=#<Proc:0x007fa5022d8e18@(irb):3>, @challenge=#<Defi::Challenge:0x007fa5022d8a08 @method=:call, @args=[]>, @actual="Hello, Alice!", @expected=#<Matchi::Eql:0x007fa5022d8cb0 @expected="Hello, Alice!">, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
67
67
  greeting # => "Hello, world!"
68
68
  ```
69
69
 
@@ -72,7 +72,7 @@ Example of test without isolation:
72
72
  ```ruby
73
73
  greeting = 'Hello, world!'
74
74
  it { greeting.gsub!('world', 'Alice') }.MUST eql 'Hello, Alice!'
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>
75
+ # => #<Spectus::Result::Pass:0x007f982304d310 @message="Pass: Expected \"Hello, Alice!\" to eql \"Hello, Alice!\".", @subject=#<Proc:0x007f982304fbb0@(irb):3>, @challenge=#<Defi::Challenge:0x007f982304f890 @method=:call, @args=[]>, @actual="Hello, Alice!", @expected=#<Matchi::Eql:0x007f982304f200 @expected="Hello, Alice!">, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
76
76
  greeting # => "Hello, Alice!"
77
77
  ```
78
78
 
@@ -99,7 +99,7 @@ Given the `"ルビー"` object, when it receives `valid_encoding?` method, then
99
99
 
100
100
  ```ruby
101
101
  it { 'ルビー'.valid_encoding? }.MUST be_true
102
- # => #<Spectus::Result::Pass:0x007fd2791f1a50 @message="Pass: Expected true to be true.", @subject=#<Proc:0x007fd2791f23d8@(irb):1>, @challenge=#<Defi::Challenge:0x007fd2791f2338 @method=:call, @args=[]>, @actual=true, @expected=:BeTrue, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
102
+ # => #<Spectus::Result::Pass:0x007ffd7d00af50 @message="Pass: Expected true to be_true.", @subject=#<Proc:0x007ffd7d010130@(irb):2>, @challenge=#<Defi::Challenge:0x007ffd7d0116e8 @method=:call, @args=[]>, @actual=true, @expected=#<Matchi::BeTrue:0x007ffd7d012188>, @got=true, @error=nil, @level=:High, @negate=false, @valid=true>
103
103
  ```
104
104
 
105
105
  The result of the test shows that the spec passed.
@@ -110,7 +110,7 @@ Given the `"foo"` object, when it receives `length` method, then it **MUST NOT**
110
110
 
111
111
  ```ruby
112
112
  it { 'foo'.length }.MUST_NOT raise_exception NoMethodError
113
- # => #<Spectus::Result::Pass:0x007f94e3408628 @message="Pass: Expected 3 not to raise exception NoMethodError.", @subject=#<Proc:0x007f94e3409050@(irb):1>, @challenge=#<Defi::Challenge:0x007f94e3408fd8 @method=:call, @args=[]>, @actual=3, @expected={:RaiseException=>NoMethodError}, @got=true, @error=nil, @level=:High, @negate=true, @valid=true>
113
+ # => #<Spectus::Result::Pass:0x007ffd7b890af0 @message="Pass: Expected 3 not to raise_exception NoMethodError.", @subject=#<Proc:0x007ffd7b8913b0@(irb):3>, @challenge=#<Defi::Challenge:0x007ffd7b891248 @method=:call, @args=[]>, @actual=3, @expected=#<Matchi::RaiseException:0x007ffd7b891130 @expected=NoMethodError>, @got=true, @error=nil, @level=:High, @negate=true, @valid=true>
114
114
  ```
115
115
 
116
116
  The result of the test shows that the spec passed.
@@ -121,7 +121,7 @@ Given the `BasicObject` object, when it receives `superclass` method, then it **
121
121
 
122
122
  ```ruby
123
123
  it { BasicObject.superclass }.SHOULD equal NilClass
124
- # => #<Spectus::Result::Pass:0x007fb5ac37cc10 @message="Info: Expected nil to equal NilClass.", @subject=#<Proc:0x007fb5ac37d5c0@(irb):1>, @challenge=#<Defi::Challenge:0x007fb5ac37d520 @method=:call, @args=[]>, @actual=nil, @expected={:Equal=>NilClass}, @got=false, @error=nil, @level=:Medium, @negate=false, @valid=false>
124
+ # => #<Spectus::Result::Pass:0x007ffd7b871a38 @message="Info: Expected nil to equal NilClass.", @subject=#<Proc:0x007ffd7b872460@(irb):4>, @challenge=#<Defi::Challenge:0x007ffd7b872370 @method=:call, @args=[]>, @actual=nil, @expected=#<Matchi::Equal:0x007ffd7b872140 @expected=NilClass>, @got=false, @error=nil, @level=:Medium, @negate=false, @valid=false>
125
125
  ```
126
126
 
127
127
  Instead of the expected `NilClass` class, its sole instance (which is `nil`) was returned.
@@ -134,7 +134,7 @@ Given the `"1"` object, when it receives `+(1)` method, then it **SHOULD NOT** r
134
134
  ```ruby
135
135
  it { '1' + 1 }.SHOULD_NOT eql '11'
136
136
  # Spectus::Result::Fail: Error: no implicit conversion of Fixnum into String (TypeError).
137
- # from (irb):1
137
+ # from (irb):5
138
138
  # from ./bin/console:7:in `<main>'
139
139
  ```
140
140
 
@@ -146,7 +146,7 @@ Given the `"foo"` object, when it receives `blank?` method, then it **MAY** be `
146
146
 
147
147
  ```ruby
148
148
  it { 'foo'.blank? }.MAY be_false
149
- # => #<Spectus::Result::Pass:0x007fad1d057130 @message="Info: undefined method `blank?' for \"foo\":String (NoMethodError).", @subject=#<Proc:0x007fad1d057dd8@(irb):1>, @challenge=#<Defi::Challenge:0x007fad1d057ce8 @method=:call, @args=[]>, @actual=nil, @expected=:BeFalse, @got=nil, @error=#<NoMethodError: undefined method `blank?' for "foo":String>, @level=:Low, @negate=false, @valid=false>
149
+ # => #<Spectus::Result::Pass:0x007ffd7bbc3cb8 @message="Info: undefined method `blank?' for \"foo\":String (NoMethodError).", @subject=#<Proc:0x007ffd7b8285b8@(irb):6>, @challenge=#<Defi::Challenge:0x007ffd7b8284f0 @method=:call, @args=[]>, @actual=nil, @expected=#<Matchi::BeFalse:0x007ffd7b828310>, @got=nil, @error=#<NoMethodError: undefined method `blank?' for "foo":String>, @level=:Low, @negate=false, @valid=false>
150
150
  ```
151
151
 
152
152
  The optional `blank?` method is not implemented (unlike in [Ruby on Rails](http://api.rubyonrails.org/classes/Object.html#method-i-blank-3F), for instance), so the result of the test shows that the spec passed.
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 3.0.1
1
+ 3.0.2
@@ -0,0 +1 @@
1
+ 64030a2e905aff8b458d014f9e261b236e6fe38a9b912bdd9e53d37a7b894def05a7645d4694067f3b52d620bf61d13affd77e56740a1d66590ab5937eaa9a60
data/spectus.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.add_dependency 'aw', '~> 0.1.0'
18
18
  spec.add_dependency 'defi', '~> 1.1.0'
19
- spec.add_dependency 'matchi', '~> 0.1.1'
19
+ spec.add_dependency 'matchi', '~> 0.1.2'
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.10'
22
22
  spec.add_development_dependency 'rake', '~> 10.4'
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.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -66,14 +66,14 @@ dependencies:
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.1.1
69
+ version: 0.1.2
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 0.1.1
76
+ version: 0.1.2
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: bundler
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -188,6 +188,7 @@ files:
188
188
  - checksum/spectus-2.9.1.gem.sha512
189
189
  - checksum/spectus-2.9.2.gem.sha512
190
190
  - checksum/spectus-3.0.0.gem.sha512
191
+ - checksum/spectus-3.0.1.gem.sha512
191
192
  - lib/spectus.rb
192
193
  - lib/spectus/expectation_target.rb
193
194
  - lib/spectus/report.rb
metadata.gz.sig CHANGED
Binary file