evt-messaging-fixtures 1.1.6.1 → 1.1.8.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
  SHA256:
3
- metadata.gz: 7939863e15b5c4b69fba49236ce25c25c0ea77287cddafb4c7f9b2bbd30e837f
4
- data.tar.gz: be6103c28d07826cb0424ed716d8499c3ecaaf879ac087dc983b61f3d7ebe4c6
3
+ metadata.gz: 37dc92a25ed5038902883ede2d9d4253f5f5661746c5c151ddb8d3d5fb886d9e
4
+ data.tar.gz: 2dc836de151e3af0323e2817902e468a274fc82954440236bf14dd2c81f352c2
5
5
  SHA512:
6
- metadata.gz: f9dc5bc0a604cf7405540e8453da4ad2242d042538d0902c06f04dd90459bb55c2735c6fa863c8690c1c3c28e93ff965b12f05159b53bf02c123891b144bff9c
7
- data.tar.gz: 89b10eaefcac75ed55b24ab68fc1f7a2de2999f3a1ff3b5ad04852303c82cf75ea1fd85d656c203edbbc9f4c86968288b465e2ba8851357f331c0d92d7d8cd6b
6
+ metadata.gz: 350471d809af29bd96417514e5b3ba5113ad96d8ee3886523ee667caa4741370ad8f13d5e5edcd50cc4fce88fa6864b9ddac9ba68a09b3f85cded20f3d35f3e0
7
+ data.tar.gz: a6f53264101bdeedd6628e8f9043dde035dda97b1df4307324d8b427e07d3897c1ff06c627f0fa5450cc5bf9d43a73627760c3c1bf203ed4ad7442eb2cbf55fa
@@ -47,6 +47,7 @@ module Messaging
47
47
  include Messaging::Message
48
48
 
49
49
  attribute :some_attribute, String
50
+ attribute :some_other_attribute, String
50
51
  end
51
52
  end
52
53
 
@@ -18,6 +18,7 @@ module Messaging
18
18
  metadata.reply_stream_name = reply_stream_name
19
19
 
20
20
  metadata.properties = properties
21
+ metadata.local_properties = local_properties
21
22
 
22
23
  metadata.time = time
23
24
 
@@ -39,15 +40,15 @@ module Messaging
39
40
  end
40
41
 
41
42
  def self.causation_message_stream_name
42
- Message::Metadata.stream_name
43
+ stream_name
43
44
  end
44
45
 
45
46
  def self.causation_message_position
46
- Message::Metadata.position
47
+ position
47
48
  end
48
49
 
49
50
  def self.causation_message_global_position
50
- Message::Metadata.global_position
51
+ global_position
51
52
  end
52
53
 
53
54
  def self.correlation_stream_name
@@ -60,7 +61,19 @@ module Messaging
60
61
 
61
62
  def self.properties
62
63
  {
63
- some_property: 'some property value'
64
+ :some_property => 'some property value'
65
+ }
66
+ end
67
+
68
+ def self.local_properties
69
+ {
70
+ :some_local_property => 'some local property value'
71
+ }
72
+ end
73
+
74
+ def self.local_properties
75
+ {
76
+ some_local_property: 'some local property value'
64
77
  }
65
78
  end
66
79
 
@@ -138,13 +138,25 @@ module Messaging
138
138
 
139
139
  def assert_attribute_value(name, value)
140
140
  context "Attribute Value" do
141
- attribute_value = message.public_send(name)
141
+ assert_attribute_value!(name, value)
142
+ end
143
+ end
144
+
145
+ def assert_attribute_value!(name, value)
146
+ attribute_value = message.public_send(name)
142
147
 
143
- test "#{name}" do
144
- detail "Attribute Value: #{attribute_value.inspect}"
145
- detail "Compare Value: #{value.inspect}"
148
+ test "#{name}" do
149
+ detail "Attribute Value: #{attribute_value.inspect}"
150
+ detail "Compare Value: #{value.inspect}"
151
+
152
+ assert(attribute_value == value)
153
+ end
154
+ end
146
155
 
147
- assert(attribute_value == value)
156
+ def assert_attribute_values(attributes)
157
+ context "Attribute Values" do
158
+ attributes.each do |name, value|
159
+ assert_attribute_value!(name, value)
148
160
  end
149
161
  end
150
162
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-messaging-fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6.1
4
+ version: 1.1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-entity_store
@@ -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.2
97
+ rubygems_version: 3.5.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: TestBench fixtures for the Messaging library