Permalink
Browse files

Makes it clear that all these things are private/internal

[ci skip]
  • Loading branch information...
1 parent 5fa75f9 commit 68be52a19c6776d17e2613370105e31668fd1bc7 @alindeman alindeman committed Aug 10, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/rspec/rails/adapters.rb
@@ -12,6 +12,7 @@ module Rails
Assertions = Test::Unit::Assertions
end
+ # @api private
class AssertionDelegator < Module
# @api private
def initialize(*assertion_modules)
@@ -46,7 +47,9 @@ def #{method}(*args, &block)
end
end
- # Minitest::Test::LifecycleHooks
+ # Adapts example groups for `Minitest::Test::LifecycleHooks`
+ #
+ # @api private
module MinitestLifecycleAdapter
extend ActiveSupport::Concern
@@ -87,6 +90,7 @@ def assertions=(assertions)
end
end
+ # @api private
module SetupAndTeardownAdapter
extend ActiveSupport::Concern
@@ -147,6 +151,7 @@ def #{m}(*args, &block)
end
end
+ # @api private
class AssertionDelegator
include ::RSpec::Rails::Assertions
include ::RSpec::Rails::MinitestCounters
@@ -165,7 +170,7 @@ def assertion_delegator
# Backwards compatibility. It's unlikely that anyone is using this
# constant, but we had forgotten to mark it as `@private` earlier
#
- # @private
+ # @api private
TestUnitAssertionAdapter = MinitestAssertionAdapter
end
end

0 comments on commit 68be52a

Please sign in to comment.