c13d5403325abffa75138587abb1c4676c5cf7d7
[packages/precise/mcollective.git] / spec / unit / aggregate / 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