minitest-given 3.3.0.beta2 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -1
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0032caf21e7b52a0d9b21b70f44bb5ac2d5f0d1
4
- data.tar.gz: d35603b8704bb9992843f2b761798f5098832ade
3
+ metadata.gz: 7f6ac78ebf0dcbd97a1c4507f2a003f6ec9003b3
4
+ data.tar.gz: 5e7fcbba3bc694a5ac78cce67eb5f3454d52dfee
5
5
  SHA512:
6
- metadata.gz: 53cc11715e64b91ca0cd32891c13583e167c4342a064f505e2f01b91d5a218c69ce393f3c16461c4b29bd40e9937ca24a8895579fcd16025aebe31fd02478f2c
7
- data.tar.gz: 58cac8e3992df2c5406aba9162c0f9daa96696c5f88ac927ee6be50a90fbd58f70cf4cc99c7a501927963d959b97fe0c2a268471da1af0da8f5c3e354916b9de
6
+ metadata.gz: 06b7d59ef0798b8d6283bdd0645e8fbde93b09f86bafbd21d04b6e67e540a7ff0a7b32cd4655a8e38687a14e573b629a5e3dcda7be31b1d7bfc1e6236a3095a7
7
+ data.tar.gz: 27f9034b05e5bdf0e7904f2a93d809cf1f189017068fa61b0b8bdf915ad2ebb2ec9285ea0cea6ceedb3e714a902726f081a48fabfdf45320b74225526b883e6b
data/README.md CHANGED
@@ -466,7 +466,24 @@ clauses and _before_ blocks.
466
466
  RSpec/Given now supports the use of "natural assertions" in _Then_,
467
467
  _And_, and _Invariant_ blocks. Natural assertions are just Ruby
468
468
  conditionals, without the _should_ or _expect_ methods that RSpec
469
- provides. Here are the Then/And examples showing natural assertions:
469
+ provides.
470
+
471
+ When using natural assertions, the value of the _Then_ expression
472
+ determines the pass/fail state of the test. If the expression is
473
+ true, the test passes. If the test is false, the test fails.
474
+
475
+ If the _Then_ expression executes an RSpec (or MiniTest) assertion
476
+ (e.g. uses <code>should</code>, <code>expect</code> or
477
+ <code>assert_xxx</code>), then the true/false value will be ignored.
478
+ This allows natural assertions and regular assertions clauses to be
479
+ intermixed at will.
480
+
481
+ In addition, if the value of a _Then_ class returns an object that
482
+ responds to <code>to_bool</code>, then <code>to_bool</code> will be
483
+ called and the return value of that will be used to determine if the
484
+ test passed or failed.
485
+
486
+ Here are the Then/And examples showing natural assertions:
470
487
 
471
488
  ### Using Natural Assertions
472
489
 
@@ -849,6 +866,11 @@ License. See the MIT-LICENSE file in the source distribution.
849
866
 
850
867
  # History
851
868
 
869
+ * Version 3.3.0
870
+
871
+ * Add support for <code>to_bool</code>.
872
+ * Restrict length of inspect strings printed to 2000 characters.
873
+
852
874
  * Version 3.2.0
853
875
 
854
876
  * Add support for RSpec 3 beta
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-given
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0.beta2
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2013-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: given_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.0.beta2
19
+ version: 3.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.3.0.beta2
26
+ version: 3.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -102,9 +102,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: 1.9.2
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>'
105
+ - - '>='
106
106
  - !ruby/object:Gem::Version
107
- version: 1.3.1
107
+ version: '0'
108
108
  requirements: []
109
109
  rubyforge_project: given
110
110
  rubygems_version: 2.1.11