rspice 0.20.0.1 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspice/custom_matchers/include_module.rb +13 -6
- data/lib/rspice/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38b906b7a9aa1a693ed2f4cc3baf202a0d52719f7e8d5a4bc3495aebbf71a2f
|
4
|
+
data.tar.gz: 6659c794832cbffd2cb93842ea92f79c5183a4777007b2d3843cb35bf44314b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c089e84f9440da9496aa586540c746f67b5a4ecc43e3ceee1889ef7c519a455afe5a134439ce94ed604d72407a171b526023691ce072196a442ca3ce4b60e753
|
7
|
+
data.tar.gz: 4cc56b4a7a3b9d8fd9e6f8cfa36266f26690ec749075a07ab876128d52ce5a51973f59867c41d23ffba0d72ac1bc15463a5fcf8e9a16a9e2666cdbd298857075
|
@@ -11,13 +11,20 @@
|
|
11
11
|
# it { is_expected.to include_module Nodule }
|
12
12
|
# end
|
13
13
|
|
14
|
-
RSpec::Matchers.define :include_module do |
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
RSpec::Matchers.define :include_module do |expected_module|
|
15
|
+
attr_reader :target
|
16
|
+
|
17
|
+
description { "included the module #{expected_module}" }
|
18
|
+
failure_message { |described_class| "expected #{described_class} to include module #{expected_module}" }
|
19
|
+
failure_message_when_negated { |described_class| "expected #{described_class} not to include module #{expected_module}" }
|
20
|
+
|
21
|
+
match do |target|
|
22
|
+
@target = target
|
23
|
+
|
24
|
+
test_subject.included_modules.include? expected_module
|
25
|
+
end
|
19
26
|
|
20
27
|
def test_subject
|
21
|
-
|
28
|
+
target.is_a?(Class) ? target : target.class
|
22
29
|
end
|
23
30
|
end
|
data/lib/rspice/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Garside
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2020-01-
|
14
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -92,7 +92,7 @@ metadata:
|
|
92
92
|
homepage_uri: https://github.com/Freshly/spicerack/tree/master/rspice
|
93
93
|
source_code_uri: https://github.com/Freshly/spicerack/tree/master/rspice
|
94
94
|
changelog_uri: https://github.com/Freshly/spicerack/blob/master/rspice/CHANGELOG.md
|
95
|
-
documentation_uri: https://www.rubydoc.info/gems/rspice/0.20.
|
95
|
+
documentation_uri: https://www.rubydoc.info/gems/rspice/0.20.2
|
96
96
|
post_install_message:
|
97
97
|
rdoc_options: []
|
98
98
|
require_paths:
|