Sha256: 03b524eaeb2e3c0e7e311e83b3f6c962675c4696025c43abc37b9624423fa2ca

Contents?: true

Size: 550 Bytes

Versions: 43

Compression:

Stored size: 550 Bytes

Contents

#!/usr/bin/env rspec

require 'spec_helper'

module MCollective
  class Aggregate
    module Result
      describe NumericResult do
        describe "#to_s" do
          it "should return empty string when no results were computed" do
            NumericResult.new({}, "test %d", :action).to_s.should == ""
          end

          it "should return the correctly formatted string" do
            num = NumericResult.new({:value => 1}, "test %d", :action).to_s
            num.should == "test 1"
          end
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

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