Retrospring/spec/controllers/metrics_controller_spec.rb

17 lines
361 B
Ruby
Raw Normal View History

2023-02-13 11:13:32 -08:00
# frozen_string_literal: true
require "rails_helper"
describe MetricsController, type: :controller do
describe "#show" do
subject { get :show }
it "returns the metrics" do
# ensure we have at least a metric set
Retrospring::Metrics::VERSION_INFO.set 1
expect(subject.body).to include "retrospring_version_info"
end
end
end