spec/slate/calculation/last_spec.rb in slate-0.1.0 vs spec/slate/calculation/last_spec.rb in slate-0.2.0
- old
+ new
@@ -17,8 +17,8 @@
@graph.stubs(:download).with(:json).returns(JSON.generate(data))
end
it "should calculate the mean of the series" do
calculation = Slate::Calculation::Last.new(@graph)
- calculation.result.should == 3.0
+ calculation.result.should == [{ "name" => "some.stat", "value" => 3.0 }]
end
end