0
0
Fork 0

Enable "zero monkey patching" mode in RSpec (#31614)

This commit is contained in:
Matt Jankowski 2024-09-04 01:12:25 -04:00 committed by GitHub
parent c9ea91f868
commit f1003b2560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
439 changed files with 441 additions and 439 deletions

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::InstanceAccountsDimension do
RSpec.describe Admin::Metrics::Dimension::InstanceAccountsDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::InstanceLanguagesDimension do
RSpec.describe Admin::Metrics::Dimension::InstanceLanguagesDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::LanguagesDimension do
RSpec.describe Admin::Metrics::Dimension::LanguagesDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::ServersDimension do
RSpec.describe Admin::Metrics::Dimension::ServersDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::SoftwareVersionsDimension do
RSpec.describe Admin::Metrics::Dimension::SoftwareVersionsDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::SourcesDimension do
RSpec.describe Admin::Metrics::Dimension::SourcesDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::SpaceUsageDimension do
RSpec.describe Admin::Metrics::Dimension::SpaceUsageDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::TagLanguagesDimension do
RSpec.describe Admin::Metrics::Dimension::TagLanguagesDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension::TagServersDimension do
RSpec.describe Admin::Metrics::Dimension::TagServersDimension do
subject { described_class.new(start_at, end_at, limit, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Dimension do
RSpec.describe Admin::Metrics::Dimension do
describe '.retrieve' do
subject { described_class.retrieve(reports, start_at, end_at, 5, params) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::ActiveUsersMeasure do
RSpec.describe Admin::Metrics::Measure::ActiveUsersMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceAccountsMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceAccountsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceFollowersMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceFollowersMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceFollowsMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceFollowsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceMediaAttachmentsMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceMediaAttachmentsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceReportsMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceReportsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InstanceStatusesMeasure do
RSpec.describe Admin::Metrics::Measure::InstanceStatusesMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:domain) { 'example.com' }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::InteractionsMeasure do
RSpec.describe Admin::Metrics::Measure::InteractionsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::NewUsersMeasure do
RSpec.describe Admin::Metrics::Measure::NewUsersMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::OpenedReportsMeasure do
RSpec.describe Admin::Metrics::Measure::OpenedReportsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::ResolvedReportsMeasure do
RSpec.describe Admin::Metrics::Measure::ResolvedReportsMeasure do
subject { described_class.new(start_at, end_at, params) }
let(:start_at) { 2.days.ago }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::TagAccountsMeasure do
RSpec.describe Admin::Metrics::Measure::TagAccountsMeasure do
subject { described_class.new(start_at, end_at, params) }
let!(:tag) { Fabricate(:tag) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::TagServersMeasure do
RSpec.describe Admin::Metrics::Measure::TagServersMeasure do
subject { described_class.new(start_at, end_at, params) }
let!(:tag) { Fabricate(:tag) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure::TagUsesMeasure do
RSpec.describe Admin::Metrics::Measure::TagUsesMeasure do
subject { described_class.new(start_at, end_at, params) }
let!(:tag) { Fabricate(:tag) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe Admin::Metrics::Measure do
RSpec.describe Admin::Metrics::Measure do
describe '.retrieve' do
subject { described_class.retrieve(reports, start_at, end_at, params) }