Skip to content

Commit dd809a3

Browse files
committed
lint: fix rubocop offenses
1 parent 642fc4f commit dd809a3

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

test/adapter_compatibility_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class AdapterCompatibilityTest < Minitest::Test
1010
def test_postgresql_adapter_available
11-
assert defined?(Whodunit::Chronicles::Adapters::PostgreSQL)
11+
assertdefined?(Whodunit::Chronicles::Adapters::PostgreSQL)
1212

1313
adapter = Whodunit::Chronicles::AdapterLoader.load(:postgresql)
1414

@@ -21,7 +21,7 @@ def test_postgresql_adapter_available
2121
end
2222

2323
def test_mysql_adapter_available
24-
assert defined?(Whodunit::Chronicles::Adapters::MySQL)
24+
assertdefined?(Whodunit::Chronicles::Adapters::MySQL)
2525

2626
adapter = Whodunit::Chronicles::AdapterLoader.load(:mysql)
2727

test/whodunit/chronicles_test.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
module Whodunit
66
class ChroniclesTest < Minitest::Test
77
def test_module_exists?
8-
assert defined?(Whodunit::Chronicles)
8+
assertdefined?(Whodunit::Chronicles)
99
end
1010

1111
def test_version_defined
@@ -38,10 +38,10 @@ def test_logger_access
3838
end
3939

4040
def test_error_classes_defined
41-
assert defined?(Whodunit::Chronicles::Error)
42-
assert defined?(Whodunit::Chronicles::ConfigurationError)
43-
assert defined?(Whodunit::Chronicles::AdapterLoadError)
44-
assert defined?(Whodunit::Chronicles::ReplicationError)
41+
assertdefined?(Whodunit::Chronicles::Error)
42+
assertdefined?(Whodunit::Chronicles::ConfigurationError)
43+
assertdefined?(Whodunit::Chronicles::AdapterLoadError)
44+
assertdefined?(Whodunit::Chronicles::ReplicationError)
4545

4646
# Test inheritance
4747
assert_operator Whodunit::Chronicles::ConfigurationError, :<, Whodunit::Chronicles::Error
@@ -50,13 +50,13 @@ def test_error_classes_defined
5050
end
5151

5252
def test_main_classes_defined?
53-
assert defined?(Whodunit::Chronicles::ChangeEvent)
54-
assert defined?(Whodunit::Chronicles::StreamAdapter)
55-
assert defined?(Whodunit::Chronicles::Processor)
56-
assert defined?(Whodunit::Chronicles::Service)
57-
assert defined?(Whodunit::Chronicles::Configuration)
58-
assert defined?(Whodunit::Chronicles::Adapters::PostgreSQL)
59-
assert defined?(Whodunit::Chronicles::Adapters::MySQL)
53+
assertdefined?(Whodunit::Chronicles::ChangeEvent)
54+
assertdefined?(Whodunit::Chronicles::StreamAdapter)
55+
assertdefined?(Whodunit::Chronicles::Processor)
56+
assertdefined?(Whodunit::Chronicles::Service)
57+
assertdefined?(Whodunit::Chronicles::Configuration)
58+
assertdefined?(Whodunit::Chronicles::Adapters::PostgreSQL)
59+
assertdefined?(Whodunit::Chronicles::Adapters::MySQL)
6060
end
6161

6262
def test_start_creates_service

0 commit comments

Comments
 (0)