Sha256: c45aa9e6d604691a1958b17f49e0d62e3701bb4900b8961d82440476928946e9

Contents?: true

Size: 443 Bytes

Versions: 42

Compression:

Stored size: 443 Bytes

Contents

#!/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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
mcollective-client-2.12.5 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.12.4 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.12.3 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.12.1 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.12.0 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.6 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.11.4 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.11.3 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.11.2 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.11.1 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.11.0 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.4 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.3 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.2 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.1 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.10.0 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.8.7 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.8.5 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.8.8 spec/unit/mcollective/aggregate/result/collection_result_spec.rb
mcollective-client-2.8.6 spec/unit/mcollective/aggregate/result/collection_result_spec.rb