diff --git a/lib/shoulda/matchers.rb b/lib/shoulda/matchers.rb index b4c00d1e5..72ee0f687 100644 --- a/lib/shoulda/matchers.rb +++ b/lib/shoulda/matchers.rb @@ -14,8 +14,8 @@ require 'shoulda/matchers/active_record' require 'shoulda/matchers/routing' -module Shoulda - module Matchers +module Shoulda # :nodoc: + module Matchers # :nodoc: class << self # @private attr_accessor :assertion_exception_class diff --git a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb index 4eae81f73..785bd504e 100644 --- a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb @@ -3,6 +3,7 @@ module Shoulda module Matchers + # @private class ExampleClass; end module ActiveModel diff --git a/lib/shoulda/matchers/rails_shim.rb b/lib/shoulda/matchers/rails_shim.rb index 63e08eb10..f91fc7e53 100644 --- a/lib/shoulda/matchers/rails_shim.rb +++ b/lib/shoulda/matchers/rails_shim.rb @@ -177,6 +177,7 @@ def simply_generate_validation_message( I18n.translate(primary_translation_key, translate_options) end + # @private class FakeAttributeType def initialize(model, attribute_name) @model = model