# File test/test_rrdtool.rb, line 120 def test_last # first and last should raise an exception without an RRD file assert_raise RRDtoolError do @r.last end create_file l = @r.last assert l > 0 assert_equal @start, l create_data l = @r.last assert l > @start end