mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Fixed Style/LeadingCommentSpace RuboCop offense
Change-Id: Id20fb9d5b9c0ca6a6c2c34812f4130d2c8fb0c93 See: https://github.com/bbatsov/ruby-style-guide#hash-space Bug: T117984
This commit is contained in:
parent
9cf6ba3887
commit
1b8964e86f
|
@ -17,12 +17,6 @@ Style/GlobalVars:
|
|||
Exclude:
|
||||
- 'tests/browser/features/step_definitions/mmv_performance_steps.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/LeadingCommentSpace:
|
||||
Exclude:
|
||||
- 'tests/browser/features/step_definitions/mmv_performance_steps.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
||||
|
|
|
@ -30,7 +30,7 @@ end
|
|||
Then /^the File: page image is loaded$/ do
|
||||
on(CommonsPage) do |page|
|
||||
page.wait_for_image_load ".fullImageLink img"
|
||||
#Has to be a global variable, otherwise it doesn't survive between scenarios
|
||||
# Has to be a global variable, otherwise it doesn't survive between scenarios
|
||||
$commons_time = Time.now.getutc - @commons_open_time
|
||||
page.log_performance type: "file-page", duration: $commons_time * 1000
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue