Fix Rubocop Lint (#3361) [ci skip]
This commit is contained in:
parent
4edf4a646f
commit
9afdea06f5
2 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2019-06-24 09:56:43 +0200 using RuboCop version 0.71.0.
|
||||
# on 2019-07-01 18:50:42 +0200 using RuboCop version 0.72.0.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
|
|
@ -21,7 +21,7 @@ RSpec/AnyInstance:
|
|||
Exclude:
|
||||
- 'spec/requests/stripe_cancellations_spec.rb'
|
||||
|
||||
# Offense count: 276
|
||||
# Offense count: 281
|
||||
# Configuration parameters: AggregateFailuresByDefault.
|
||||
RSpec/MultipleExpectations:
|
||||
Max: 8
|
||||
|
|
@ -61,7 +61,7 @@ Style/GuardClause:
|
|||
Exclude:
|
||||
- 'app/models/article.rb'
|
||||
|
||||
# Offense count: 2413
|
||||
# Offense count: 2463
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||
# URISchemes: http, https
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ RSpec.describe AnalyticsService, type: :service do
|
|||
stats = described_class.new(
|
||||
user, start_date: "2019-04-01", end_date: "2019-04-04"
|
||||
).grouped_by_day
|
||||
expect(stats.keys).to eq(["2019-04-01", "2019-04-02", "2019-04-03", "2019-04-04"])
|
||||
expect(stats.keys).to eq(%w[2019-04-01 2019-04-02 2019-04-03 2019-04-04])
|
||||
end
|
||||
|
||||
it "returns stats for comments, reactions, follows and page views for a specific day" do
|
||||
|
|
@ -186,7 +186,7 @@ RSpec.describe AnalyticsService, type: :service do
|
|||
stats = described_class.new(
|
||||
organization, start_date: "2019-04-01", end_date: "2019-04-04"
|
||||
).grouped_by_day
|
||||
expect(stats.keys).to eq(["2019-04-01", "2019-04-02", "2019-04-03", "2019-04-04"])
|
||||
expect(stats.keys).to eq(%w[2019-04-01 2019-04-02 2019-04-03 2019-04-04])
|
||||
expect(stats["2019-04-01"].keys.to_set).to eq(%i[comments reactions page_views follows].to_set)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue