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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c45e6880790916902cbf5c52619e9cb15c335251079ca2ec027c7ca7710ab66e
4
- data.tar.gz: 9558fee1ece3893923812f29aa81e9915d7cdf1fab91142924d383d453d942fd
3
+ metadata.gz: 53fcdc610e9e29195bf0f7d766128d11d4865ddebad1c1e0bbabde782a7744e7
4
+ data.tar.gz: 833439a2bf9d9aa9b8ee9b5577e8aab197c2a03080991e5d7675f03bc78523b2
5
5
  SHA512:
6
- metadata.gz: 3f17eb391bcdbccc5f5c14a366719282bdda6011d637fc4fab7c4cd832036f6b38b62c066622c83fee1fe9aa59894470e8f5093ca53179f18701976c8d540df1
7
- data.tar.gz: bb05a8dae9020bec28f66478a1802b089ed4d644364f90d35dc050e3eca393bdbc8001a2f76b45d0fdb53b60aaca8595c03fb676186cab309c7e28b94979f118
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
- attributes_context_title = "#{context_title_qualifier} Attributes Assigned".lstrip
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.5.0
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.4
97
+ rubygems_version: 3.1.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: TestBench fixtures for the Messaging library