From 0acc27eaac720b656d9931c3b2b188e4360d66de Mon Sep 17 00:00:00 2001 From: Kapil Sachdev Date: Fri, 4 Sep 2020 21:21:18 +0530 Subject: [PATCH] fix(rubocop): Satisfy Style/EmptyMethod [ci skip] --- custom_plan.rb | 3 +-- lib/shoulda/matchers/integrations/libraries/missing_library.rb | 3 +-- .../integrations/test_frameworks/active_support_test_case.rb | 3 +-- .../matchers/integrations/test_frameworks/minitest_4.rb | 3 +-- .../matchers/integrations/test_frameworks/minitest_5.rb | 3 +-- .../integrations/test_frameworks/missing_test_framework.rb | 3 +-- lib/shoulda/matchers/integrations/test_frameworks/rspec.rb | 3 +-- lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb | 3 +-- spec/support/tests/database_adapters/sqlite3.rb | 3 +-- 9 files changed, 9 insertions(+), 18 deletions(-) diff --git a/custom_plan.rb b/custom_plan.rb index 2ca62690..15587cce 100644 --- a/custom_plan.rb +++ b/custom_plan.rb @@ -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' diff --git a/lib/shoulda/matchers/integrations/libraries/missing_library.rb b/lib/shoulda/matchers/integrations/libraries/missing_library.rb index c1ea89a9..db02f7d1 100644 --- a/lib/shoulda/matchers/integrations/libraries/missing_library.rb +++ b/lib/shoulda/matchers/integrations/libraries/missing_library.rb @@ -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 diff --git a/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb b/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb index 90dce71e..3d1c5e32 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb @@ -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) diff --git a/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb b/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb index 1351b8af..a6b16ed8 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb @@ -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 diff --git a/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb b/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb index 14553fd9..5375cc31 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb @@ -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 diff --git a/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb b/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb index 0a5f8c55..c92c6477 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb @@ -23,8 +23,7 @@ end EOT end - def include(*modules, **options) - end + def include(*modules, **options); end def n_unit? false diff --git a/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb b/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb index 3fd6d617..df34bdd9 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb @@ -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| diff --git a/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb b/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb index 951c1df5..4dc04fc5 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb @@ -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 diff --git a/spec/support/tests/database_adapters/sqlite3.rb b/spec/support/tests/database_adapters/sqlite3.rb index 1ae8edd7..2c219282 100644 --- a/spec/support/tests/database_adapters/sqlite3.rb +++ b/spec/support/tests/database_adapters/sqlite3.rb @@ -5,8 +5,7 @@ module Tests :sqlite3 end - def initialize(_database) - end + def initialize(_database); end def adapter self.class.name