Code Review
/
packages
/
precise
/
mcollective.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Update mcollective.init according to OSCI-855
[packages/precise/mcollective.git]
/
result
/
collection_result_spec.rb
1
#!/usr/bin/env rspec
2
3
require 'spec_helper'
4
5
module MCollective
6
class Aggregate
7
module Result
8
describe CollectionResult do
9
describe "#to_s" do
10
it "should return the correctly formatted string" do
11
result = CollectionResult.new({:output => [:test], :value => {"foo" => 3, "bar" => 2}}, "%s:%s", :action).to_s
12
result.should == "foo:3\nbar:2"
13
end
14
end
15
end
16
end
17
end
18
end