8 describe NumericResult do
10 it "should return empty string when no results were computed" do
11 NumericResult.new({}, "test %d", :action).to_s.should == ""
14 it "should return the correctly formatted string" do
15 num = NumericResult.new({:value => 1}, "test %d", :action).to_s
16 num.should == "test 1"