Sha256: 0d9f743b62324f9dc2ad1f09222e402bef27c7692885fdbfe2be9772f35ba116
Contents?: true
Size: 1020 Bytes
Versions: 5
Compression:
Stored size: 1020 Bytes
Contents
# coding: utf-8 require 'spec_helper' describe MetricFu do specify "the default report_name is the run directory base name" do expect(MetricFu.report_name).to eq('dummy') end specify "the user can set the report_name" do original_report_name = MetricFu.report_name MetricFu.report_name = 'override' expect(MetricFu.report_name).to eq('override') MetricFu.report_name = original_report_name end it "has a global report time (corresponding to the time of the VCS code state)" do expect(MetricFu.report_time - Time.now).to be_within(0.1).of(0) end it "has a global current time (corresponding to report generation time)" do expect(MetricFu.current_time - Time.now).to be_within(0.1).of(0) end it "has a global report id" do expect(MetricFu.report_id).to eq(Time.now.strftime('%Y%m%d')) end it "has a global report fingerprint (corresponding to VCS code state)" do expect(MetricFu.report_fingerprint.to_i - Time.now.to_i).to be_within(0.1).of(0) end end
Version data entries
5 entries across 5 versions & 1 rubygems