Skip to content

Commit 68be52a

Browse files
committed
Makes it clear that all these things are private/internal
[ci skip]
1 parent 5fa75f9 commit 68be52a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/rspec/rails/adapters.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module Rails
1212
Assertions = Test::Unit::Assertions
1313
end
1414

15+
# @api private
1516
class AssertionDelegator < Module
1617
# @api private
1718
def initialize(*assertion_modules)
@@ -46,7 +47,9 @@ def #{method}(*args, &block)
4647
end
4748
end
4849

49-
# Minitest::Test::LifecycleHooks
50+
# Adapts example groups for `Minitest::Test::LifecycleHooks`
51+
#
52+
# @api private
5053
module MinitestLifecycleAdapter
5154
extend ActiveSupport::Concern
5255

@@ -87,6 +90,7 @@ def assertions=(assertions)
8790
end
8891
end
8992

93+
# @api private
9094
module SetupAndTeardownAdapter
9195
extend ActiveSupport::Concern
9296

@@ -147,6 +151,7 @@ def #{m}(*args, &block)
147151
end
148152
end
149153

154+
# @api private
150155
class AssertionDelegator
151156
include ::RSpec::Rails::Assertions
152157
include ::RSpec::Rails::MinitestCounters
@@ -165,7 +170,7 @@ def assertion_delegator
165170
# Backwards compatibility. It's unlikely that anyone is using this
166171
# constant, but we had forgotten to mark it as `@private` earlier
167172
#
168-
# @private
173+
# @api private
169174
TestUnitAssertionAdapter = MinitestAssertionAdapter
170175
end
171176
end

0 commit comments

Comments
 (0)