Fix rendering of nested hash inside array #83
Annotations
3 errors
Run tests:
spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os debian-11-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/
Failure/Error:
is_expected.to contain_file(path_avail). \
with_content(%r{^Component "comp1" "muc"$}). \
with_content(%r{^ bo = true;$}). \
with_content(%r{^ arr = { "one"; "two" };$}). \
with_content(%r{^ str = "string";$})
expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n"
Diff:
@@ -1,17 +1,33 @@
-(?-mix:^ arr = { "one"; "two" };$)
+VirtualHost "mockvirtualhost"
+ enabled = true
+
+
+
+------ Components ------
+-- You can specify components to add hosts that provide special services,
+-- like multi-user conferences, and transports.
+-- For more information on components, see http://prosody.im/doc/components
+
+
+Component "comp1" "muc"
+ arr = {
+ "one"; "two"
+};
+ bo = true;
+ str = "string";
|
Run tests:
spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os ubuntu-20.04-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/
Failure/Error:
is_expected.to contain_file(path_avail). \
with_content(%r{^Component "comp1" "muc"$}). \
with_content(%r{^ bo = true;$}). \
with_content(%r{^ arr = { "one"; "two" };$}). \
with_content(%r{^ str = "string";$})
expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n"
Diff:
@@ -1,17 +1,33 @@
-(?-mix:^ arr = { "one"; "two" };$)
+VirtualHost "mockvirtualhost"
+ enabled = true
+
+
+
+------ Components ------
+-- You can specify components to add hosts that provide special services,
+-- like multi-user conferences, and transports.
+-- For more information on components, see http://prosody.im/doc/components
+
+
+Component "comp1" "muc"
+ arr = {
+ "one"; "two"
+};
+ bo = true;
+ str = "string";
|
Run tests
Process completed with exit code 1.
|
Loading