holoserve-connector 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/holoserve/connector/history.rb +1 -1
- data/lib/rspec/holoserve.rb +10 -2
- metadata +12 -11
data/lib/rspec/holoserve.rb
CHANGED
@@ -17,9 +17,17 @@ RSpec.configure do |configuration|
|
|
17
17
|
|
18
18
|
end
|
19
19
|
|
20
|
-
RSpec::Matchers.define :have_received do |
|
20
|
+
RSpec::Matchers.define :have_received do |pair_id, request_variant = nil, response_variant = nil|
|
21
21
|
match do |actual|
|
22
|
-
actual.is_a?(Holoserve::Connector)
|
22
|
+
if actual.is_a?(Holoserve::Connector)
|
23
|
+
actual.history.entries.detect do |entry|
|
24
|
+
entry["id"] == pair_id &&
|
25
|
+
(request_variant.nil? || entry["request_variant"] == request_variant) &&
|
26
|
+
(response_variant.nil? || entry["response_variant"] == response_variant)
|
27
|
+
end
|
28
|
+
else
|
29
|
+
false
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
25
33
|
|
metadata
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holoserve-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Philipp Brüll
|
9
|
+
- Maximilian Hoffmann
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
+
date: 2012-06-22 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: transport
|
16
|
-
requirement: &
|
17
|
+
requirement: &70301846189360 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,10 +22,10 @@ dependencies:
|
|
21
22
|
version: '0'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *70301846189360
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: holoserve
|
27
|
-
requirement: &
|
28
|
+
requirement: &70301846188280 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
@@ -32,10 +33,10 @@ dependencies:
|
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
+
version_requirements: *70301846188280
|
36
37
|
- !ruby/object:Gem::Dependency
|
37
38
|
name: cucumber
|
38
|
-
requirement: &
|
39
|
+
requirement: &70301846187200 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ! '>='
|
@@ -43,10 +44,10 @@ dependencies:
|
|
43
44
|
version: '0'
|
44
45
|
type: :development
|
45
46
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
+
version_requirements: *70301846187200
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: rspec
|
49
|
-
requirement: &
|
50
|
+
requirement: &70301846186420 !ruby/object:Gem::Requirement
|
50
51
|
none: false
|
51
52
|
requirements:
|
52
53
|
- - ! '>='
|
@@ -54,7 +55,7 @@ dependencies:
|
|
54
55
|
version: '0'
|
55
56
|
type: :development
|
56
57
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
+
version_requirements: *70301846186420
|
58
59
|
description: Provides a client for the control interface of holoserve and some RSpec
|
59
60
|
matchers.
|
60
61
|
email: philipp.bruell@skrill.com
|
@@ -91,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
92
|
version: '0'
|
92
93
|
segments:
|
93
94
|
- 0
|
94
|
-
hash:
|
95
|
+
hash: 1136079421072524798
|
95
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
97
|
none: false
|
97
98
|
requirements:
|