evt-messaging-fixtures 1.1.7.0 → 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: 1cd7fa01e2214f53778177239b1159f5891f92a2d4e2a56ffea549437e8b2c3c
4
- data.tar.gz: 1883676af9f1f736fd57722e024f1f571b59dc279fe8f2d5befe455882011a52
3
+ metadata.gz: 37dc92a25ed5038902883ede2d9d4253f5f5661746c5c151ddb8d3d5fb886d9e
4
+ data.tar.gz: 2dc836de151e3af0323e2817902e468a274fc82954440236bf14dd2c81f352c2
5
5
  SHA512:
6
- metadata.gz: aa83d40346d3c415017ac2b43621b57ec851b60fe70963a62c50840da53f2412264194a2733e638bd2d19d3bbd89e0e242f84476123dc2f49c086a2acf5c0402
7
- data.tar.gz: 8cf47f033dcecd118484932e28a783a397c6751ab0ba905cb8c3b127a8ff7636733c83cc7fb9100d6a2f0384807114806879d014c74cef2effbe16e96f2722ce
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
 
@@ -40,15 +40,15 @@ module Messaging
40
40
  end
41
41
 
42
42
  def self.causation_message_stream_name
43
- Message::Metadata.stream_name
43
+ stream_name
44
44
  end
45
45
 
46
46
  def self.causation_message_position
47
- Message::Metadata.position
47
+ position
48
48
  end
49
49
 
50
50
  def self.causation_message_global_position
51
- Message::Metadata.global_position
51
+ global_position
52
52
  end
53
53
 
54
54
  def self.correlation_stream_name
@@ -61,7 +61,13 @@ module Messaging
61
61
 
62
62
  def self.properties
63
63
  {
64
- 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'
65
71
  }
66
72
  end
67
73
 
@@ -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.7.0
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: 2021-07-26 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.2.15
97
+ rubygems_version: 3.5.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: TestBench fixtures for the Messaging library