fix-expect 0.1.0 → 0.2.0

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: b91fbd44875bb952e9a5bce4139aec73456e98d8
4
- data.tar.gz: c3b26a2add51e30e46a4b21f9f6150c72a9b0d36
3
+ metadata.gz: 002511157d852a72d28d172b8306b03595276779
4
+ data.tar.gz: afc081ea9d0e7b03b9a06b138c6607b1ad3663e8
5
5
  SHA512:
6
- metadata.gz: a33da8aac244505cd1e8cb4e878271282526f83a5b493d1cf16004f134f4a9bf697e13b4458dd70fb278e3e333c74060cf262e86eeb1ab31dad28006c23d3972
7
- data.tar.gz: cf7b7b2fbc55fae4923a91d9b6e2a12a4a8f88ad7e706cb2541ce8758fbe49db3e2d70be5c4418697853d94417044a3955dead53846c339cc2a7f6e46728c482
6
+ metadata.gz: 63ac5cbf28a0f02c2bf2d31e591bba14133acd8d256582aac5b6e177a2b31dd4e3b4c53a09cdc0c59049c0bb94fa47c99cb9ed6601f43a97ee2a99441134a593
7
+ data.tar.gz: ccfdf0da173fc523c8c07c30e11e71f303774f73b4cb1f548b789f654d72099a10430ba34d88bede35e8bfa8427962112a1349df7f2eb0bbe16d606cf030c61b
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- ��5g��B��d��aF������'��� �a�T����o��_�~z_|E(�|�m��2e�@��F�\S�8��,e%�&<�N� �_5��w�˙��W�Ӝ��sE�oLɅ�O��
2
- g����y�]?�D��}��v�َz�³��������O�p���t���
1
+ )"�7��O'��2H^�~��GaBY��F�@��
2
+ up����<H{ـڽ�����Q���b
3
+ �Ic8�$�^6�o&�����V
4
+ B.Eme[���f<��ޛu%�cb�G���߻�������A��2(v-P�Th��x�^�pe�Nj<!��ϖ���V��C�����Z�R�-4�`+����W|uL���"U��J(
data/README.md CHANGED
@@ -83,6 +83,22 @@ end
83
83
 
84
84
  However, the tree of challenges remains the same.
85
85
 
86
+ For convenience, the `is_expected` method is also provided:
87
+
88
+ ```ruby
89
+ Fix.describe -6 * 7 do
90
+ on :abs do
91
+ # test against the described front object:
92
+ it { is_expected.to Equal: 42 }
93
+ end
94
+ end
95
+
96
+ # .
97
+ #
98
+ # Ran 1 tests in 0.000193 seconds
99
+ # 100% compliant - 0 infos, 0 failures, 0 errors
100
+ ```
101
+
86
102
  ## Security
87
103
 
88
104
  As a basic form of security __Fix::Expect__ provides a set of SHA512 checksums for
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/fix-expect.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_dependency 'fix', '~> 0.15.0'
17
+ spec.add_dependency 'fix', '~> 0.15.1'
18
18
 
19
19
  spec.add_development_dependency 'bundler', '~> 1.10'
20
20
  spec.add_development_dependency 'rake', '~> 10.4'
data/lib/fix/it.rb CHANGED
@@ -23,5 +23,14 @@ module Fix
23
23
  def expect_block(&block)
24
24
  Expect.new(block, *([block_challenge] + challenges))
25
25
  end
26
+
27
+ # rubocop:disable PredicateName
28
+
29
+ # Create a new expection target given the subject.
30
+ #
31
+ # @return [Expect] An expect instance.
32
+ def is_expected
33
+ Expect.new(subject, *challenges)
34
+ end
26
35
  end
27
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix-expect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -30,7 +30,7 @@ cert_chain:
30
30
  dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
31
  0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-10-18 00:00:00.000000000 Z
33
+ date: 2015-10-24 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: fix
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.15.0
41
+ version: 0.15.1
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.15.0
48
+ version: 0.15.1
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file