9 describe "#initialize" do
10 it "should raise an exception if neither the ddl or the aggregate function defines a format" do
12 base = Base.new(:structure, nil, :action)
13 }.to raise_error(RuntimeError, "No aggregate_format defined in ddl or aggregate function")
18 it "should raise an exception if the to_s method isn't implemented" do
19 base = Base.new(:structure, :aggregate_format, :action)
22 }.to raise_error(RuntimeError, "'to_s' method not implemented for result class 'MCollective::Aggregate::Result::Base'")