active_users_measure_spec.rb 432 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe Admin::Metrics::Measure::ActiveUsersMeasure do
  4. subject(:measure) { described_class.new(start_at, end_at, params) }
  5. let(:start_at) { 2.days.ago }
  6. let(:end_at) { Time.now.utc }
  7. let(:params) { ActionController::Parameters.new }
  8. describe '#data' do
  9. it 'runs data query without error' do
  10. expect { measure.data }.to_not raise_error
  11. end
  12. end
  13. end