mumukit-core 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/core/rspec.rb +11 -3
- data/lib/mumukit/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99a2f0c6ba6efefbec79036b8d2f8537ed11a9d5a6b76211c37d167a7f0b741
|
4
|
+
data.tar.gz: d8263121581b7593c287e06978524ca0c7c5551c94c0dbf6df6d5e9dd1f722e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ef96a6e83fc6e721e732d1f3ac620a45b14de3c6d396c4904a88d13d1c1bdc538408033dc0a1f14fbfe3bf935dec5688a986a71a84750a0c49ff6276089fef
|
7
|
+
data.tar.gz: e8c5c304a35c1ae703d0bfd9f6807345c5c83435f9cf39a3dc590090504d79c77f1b99826506bbe2d906143f3b7898683a9fa4ee7465cce8a3e514a3da32845b
|
data/lib/mumukit/core/rspec.rb
CHANGED
@@ -13,19 +13,27 @@
|
|
13
13
|
as_matcher_json(actual, options) == as_matcher_json(expected, options)
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
message = proc do |actual|
|
17
17
|
<<-EOS
|
18
18
|
expected: #{as_matcher_json(expected, options)} (#{expected.class})
|
19
19
|
got: #{as_matcher_json(actual, options)} (#{actual.class})
|
20
20
|
EOS
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
negated_message = proc do |actual|
|
24
24
|
<<-EOS
|
25
25
|
expected: value != #{as_matcher_json(expected, options)} (#{expected.class})
|
26
26
|
got: #{as_matcher_json(actual, options)} (#{actual.class})
|
27
27
|
EOS
|
28
28
|
end
|
29
|
+
|
30
|
+
if respond_to? :failure_message
|
31
|
+
failure_message(&message)
|
32
|
+
failure_message_when_negated(&message)
|
33
|
+
else
|
34
|
+
failure_message_for_should(&:message)
|
35
|
+
failure_message_for_should_not(&:message)
|
36
|
+
end
|
29
37
|
end
|
30
38
|
|
31
|
-
end
|
39
|
+
end
|
data/lib/mumukit/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2'
|
55
55
|
- !ruby/object:Gem::Dependency
|