require'spec_helper'describeGitlab::Metrics::Deltadolet(:delta){described_class.new}describe'#compared_with'doit'returns the delta as a Numeric'doexpect(delta.compared_with(5)).toeq(5)endit'bases the delta on a previously used value'doexpect(delta.compared_with(5)).toeq(5)expect(delta.compared_with(15)).toeq(10)endendend