chore(rubocop): giganto rubocop commit.
muahahahah
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
# By default this will return true, and thus all of the Capybara specs will
|
||||
# fail until a developer using the site for training has patched up all of
|
||||
# the vulnerabilities.
|
||||
@@ -8,7 +9,7 @@
|
||||
$displayed_spec_notice = false
|
||||
|
||||
def verifying_fixed?
|
||||
maintainer_env_name = 'RAILSGOAT_MAINTAINER'
|
||||
maintainer_env_name = "RAILSGOAT_MAINTAINER"
|
||||
result = !ENV[maintainer_env_name]
|
||||
if !$displayed_spec_notice && result
|
||||
puts <<-NOTICE
|
||||
@@ -35,13 +36,13 @@ def verifying_fixed?
|
||||
end
|
||||
|
||||
def login(user)
|
||||
visit '/'
|
||||
within('.signup') do
|
||||
fill_in 'email', :with => user.email
|
||||
fill_in 'password', :with => user.clear_password
|
||||
visit "/"
|
||||
within(".signup") do
|
||||
fill_in "email", with: user.email
|
||||
fill_in "password", with: user.clear_password
|
||||
end
|
||||
within('.actions') do
|
||||
click_on 'Login'
|
||||
within(".actions") do
|
||||
click_on "Login"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -72,7 +73,7 @@ end
|
||||
class WarningSuppressor
|
||||
class << self
|
||||
def write(message)
|
||||
if message =~ /QFont::setPixelSize: Pixel size <= 0/ || message =~/CoreText performance note:/ || message =~/Method userSpaceScaleFactor in class NSView/ then 0 else puts(message);1;end
|
||||
(message =~ /QFont::setPixelSize: Pixel size <= 0/ || message =~/CoreText performance note:/ || message =~/Method userSpaceScaleFactor in class NSView/) ? 0 : puts(message); 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user