X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Faggregate%2Fresult%2Fcollection_result_spec.rb;fp=spec%2Funit%2Faggregate%2Fresult%2Fcollection_result_spec.rb;h=c13d5403325abffa75138587abb1c4676c5cf7d7;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/spec/unit/aggregate/result/collection_result_spec.rb b/spec/unit/aggregate/result/collection_result_spec.rb new file mode 100644 index 0000000..c13d540 --- /dev/null +++ b/spec/unit/aggregate/result/collection_result_spec.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env rspec + +require 'spec_helper' + +module MCollective + class Aggregate + module Result + describe CollectionResult do + describe "#to_s" do + it "should return the correctly formatted string" do + result = CollectionResult.new({:output => [:test], :value => {"foo" => 3, "bar" => 2}}, "%s:%s", :action).to_s + result.should == "foo:3\nbar:2" + end + end + end + end + end +end