evt-messaging-fixtures 1.1.5.0 → 1.1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/fixtures/metadata.rb +32 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53fcdc610e9e29195bf0f7d766128d11d4865ddebad1c1e0bbabde782a7744e7
|
4
|
+
data.tar.gz: 833439a2bf9d9aa9b8ee9b5577e8aab197c2a03080991e5d7675f03bc78523b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8abb764a715efcebd5c7c031fb5479faae0f4fc344078bde01b0db065df3fd46e5f0d0ca599ba1dfa31c25cde4365533e9599e9fa3bc7ba905489fa69af3c6e8
|
7
|
+
data.tar.gz: 5af2c1081e4610e93959e2cb7de62f40cac4a79b0c1c5631ffd061d3fbe59288faf9aa4bde2f90ff8542b6dba3cbeb733fb97a692aacf25bd4cad3a6f632587b
|
@@ -38,7 +38,10 @@ module Messaging
|
|
38
38
|
def assert_attributes_assigned(attribute_names=nil, context_title_qualifier: nil)
|
39
39
|
attribute_names ||= Messaging::Message::Metadata.all_attribute_names
|
40
40
|
|
41
|
-
|
41
|
+
attributes_text = "Attribute"
|
42
|
+
attributes_text = attribute_names.length == 1 ? attributes_text : "#{attributes_text}s"
|
43
|
+
|
44
|
+
attributes_context_title = "#{context_title_qualifier} #{attributes_text} Assigned".lstrip
|
42
45
|
|
43
46
|
fixture(
|
44
47
|
Schema::Fixtures::Assignment,
|
@@ -74,6 +77,20 @@ module Messaging
|
|
74
77
|
end
|
75
78
|
end
|
76
79
|
|
80
|
+
def assert_correlation_stream_name_assigned
|
81
|
+
control_metadata = Messaging::Message::Metadata.new
|
82
|
+
default_correlation_stream_name = control_metadata.correlation_stream_name
|
83
|
+
|
84
|
+
correlation_stream_name = metadata.correlation_stream_name
|
85
|
+
|
86
|
+
test "Correlation stream name assigned" do
|
87
|
+
detail "Default Value: #{default_correlation_stream_name.inspect}"
|
88
|
+
detail "Assigned Value: #{correlation_stream_name.inspect}"
|
89
|
+
|
90
|
+
refute(correlation_stream_name == default_correlation_stream_name)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
77
94
|
def assert_reply_stream_name(reply_stream_name)
|
78
95
|
metadata_value = metadata.reply_stream_name
|
79
96
|
|
@@ -84,6 +101,20 @@ module Messaging
|
|
84
101
|
end
|
85
102
|
end
|
86
103
|
|
104
|
+
def assert_reply_stream_name_assigned
|
105
|
+
control_metadata = Messaging::Message::Metadata.new
|
106
|
+
default_reply_stream_name = control_metadata.reply_stream_name
|
107
|
+
|
108
|
+
reply_stream_name = metadata.reply_stream_name
|
109
|
+
|
110
|
+
test "Reply stream name assigned" do
|
111
|
+
detail "Default Value: #{default_reply_stream_name.inspect}"
|
112
|
+
detail "Assigned Value: #{reply_stream_name.inspect}"
|
113
|
+
|
114
|
+
refute(reply_stream_name == default_reply_stream_name)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
87
118
|
def assert_follows
|
88
119
|
fixture(Follows, metadata, source_metadata)
|
89
120
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-messaging-fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.1.
|
97
|
+
rubygems_version: 3.1.2
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: TestBench fixtures for the Messaging library
|