Update version according to OSCI-856
[packages/precise/mcollective.git] / spec / unit / plugins / mcollective / aggregate / sum_spec.rb
diff --git a/spec/unit/plugins/mcollective/aggregate/sum_spec.rb b/spec/unit/plugins/mcollective/aggregate/sum_spec.rb
deleted file mode 100644 (file)
index c3325a2..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env rspec
-
-require 'spec_helper'
-require File.dirname(__FILE__) + "/../../../../../plugins/mcollective/aggregate/sum.rb"
-
-module MCollective
-  class Aggregate
-    describe Sum do
-      describe "#startup_hook" do
-        it "should set the correct result hash" do
-          result = Sum.new(:test, [], "%d", :test_action)
-          result.result.should == {:value => 0, :type => :numeric, :output => :test}
-          result.aggregate_format.should == "%d"
-        end
-
-        it "should set a defauly aggregate_format if one isn't defined" do
-          result = Sum.new(:test, [], nil, :test_action)
-          result.aggregate_format.should == "Sum of test: %f"
-        end
-      end
-
-      describe "#process_result" do
-        it "should add the reply value to the result hash" do
-          average = Sum.new([:test], [], "%d", :test_action)
-          average.process_result(1, {:test => 1})
-          average.result[:value].should == 1
-        end
-      end
-    end
-  end
-end