summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-01-21 23:53:56 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-02-03 16:45:30 -0800
commit403adb8af42cc79701b5ff47b377e7dc1e192a34 (patch)
tree09879f1d9ce1e1a63ec51337ad1eb108f122f098 /spec
parent1ad6470e3df59caf67c484ef4e43274314c0bc40 (diff)
Feature #2597 -- nicer reporting of relationships.
Split out the reporting from a single line (often with literally hundreds or thousands of items) into a multi-line report. This is still nasty, but at least it is easier to use as input to other systems. This will also auto-join to a single line when sent to targets such as syslog that do not approve of newlines in messages; this preserves the utility of the message without needing to lose console utility.
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/simple_graph_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/simple_graph_spec.rb b/spec/unit/simple_graph_spec.rb
index 0d1a3b4a7..58978f2ba 100755
--- a/spec/unit/simple_graph_spec.rb
+++ b/spec/unit/simple_graph_spec.rb
@@ -305,7 +305,7 @@ describe Puppet::SimpleGraph do
it "should produce the correct relationship text" do
add_edges :a => :b, :b => :a
- want = %r{following relationships: \(b => a\), \(a => b\)}
+ want = %r{following relationships:\n\(b => a\)\n\(a => b\)}
expect { @graph.topsort }.to raise_error(Puppet::Error, want)
end