fix(rubocop): Satisfy Style/EmptyMethod [ci skip]

This commit is contained in:
Kapil Sachdev 2020-09-04 21:21:18 +05:30 committed by Elliot Winkler
parent cdcef128cf
commit 0acc27eaac
9 changed files with 9 additions and 18 deletions

View File

@ -45,8 +45,7 @@ class CustomPlan < Zeus::Plan
raise CouldNotBootZeusError.create(underlying_error: error)
end
def after_fork
end
def after_fork; end
def test_environment
require_relative 'spec/unit_spec_helper'

View File

@ -6,8 +6,7 @@ module Shoulda
class MissingLibrary
Integrations.register_library(self, :missing_library)
def integrate_with(test_framework)
end
def integrate_with(test_framework); end
def rails?
false

View File

@ -6,8 +6,7 @@ module Shoulda
class ActiveSupportTestCase
Integrations.register_test_framework(self, :active_support_test_case)
def validate!
end
def validate!; end
def include(*modules, **options)
test_case_class.include(*modules)

View File

@ -6,8 +6,7 @@ module Shoulda
class Minitest4
Integrations.register_test_framework(self, :minitest_4)
def validate!
end
def validate!; end
def include(*modules, **options)
test_case_class.class_eval do

View File

@ -7,8 +7,7 @@ module Shoulda
Integrations.register_test_framework(self, :minitest_5)
Integrations.register_test_framework(self, :minitest)
def validate!
end
def validate!; end
def include(*modules, **options)
test_case_class.class_eval do

View File

@ -23,8 +23,7 @@ end
EOT
end
def include(*modules, **options)
end
def include(*modules, **options); end
def n_unit?
false

View File

@ -6,8 +6,7 @@ module Shoulda
class Rspec
Integrations.register_test_framework(self, :rspec)
def validate!
end
def validate!; end
def include(*modules, **options)
::RSpec.configure do |config|

View File

@ -6,8 +6,7 @@ module Shoulda
class TestUnit
Integrations.register_test_framework(self, :test_unit)
def validate!
end
def validate!; end
def include(*modules, **options)
test_case_class.class_eval do

View File

@ -5,8 +5,7 @@ module Tests
:sqlite3
end
def initialize(_database)
end
def initialize(_database); end
def adapter
self.class.name