rspec-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: 9103125120c698de02e599bb992e6492ebb2b1f3
4
- data.tar.gz: c978da3adb2c631688051efd08f2f8ef8a36e6e9
3
+ metadata.gz: 8f6b65b46cef2fc751535568e6bd4b49bab117ad
4
+ data.tar.gz: 87338960a579e6e2b881c4438954733703801322
5
5
  SHA512:
6
- metadata.gz: 972596c5247a35f9b3b56cdf2ba3a35c33d9569653d71b4898eb7f7d9d44b382e5268f89645c0cce886872a9c0b26f9b9120ecb96ca306081e1fba8563b0190a
7
- data.tar.gz: f8e8843866547d45aa322089d7b75ea80b06e8a2e2ac8599bdd45795711e9756589f6fac26b305631181845b1a0bf0c1b62243bd98e1c3e2d9482a6b96181ba7
6
+ metadata.gz: 2188ecabba52de943bfaff4ff22ead2808a41402b9d2d807c1afdc19c5955e53794891eff19c2f904dca4a7d220d6730b104021133f39c3fc95604262755a0b2
7
+ data.tar.gz: c2b4b93337146df65592f25002cb96ce3537dc2e804b6a2cd76f81076c3b2ec126809cb6d93b9653f6b9891e745de9ff8fd9ca7ab04b915ca333a4d0c3bd8b40
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: rspec-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: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: 1.9.2
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>'
125
+ - - '>='
126
126
  - !ruby/object:Gem::Version
127
- version: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubyforge_project: given
130
130
  rubygems_version: 2.1.11