1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Omit newest private modules from docs

[ci skip]
This commit is contained in:
Elliot Winkler 2015-03-01 01:20:41 -07:00
parent 696f1d8536
commit 3e2c4e11ae
20 changed files with 38 additions and 0 deletions

View file

@ -16,6 +16,7 @@ require 'shoulda/matchers/active_record'
module Shoulda
module Matchers
class << self
# @private
attr_accessor :assertion_exception_class
end
end

View file

@ -1,6 +1,7 @@
module Shoulda
module Matchers
module Doublespeak
# @private
class MethodCall
attr_accessor :return_value
attr_reader :method_name, :args, :block, :object, :double

View file

@ -1,5 +1,6 @@
module Shoulda
module Matchers
# @private
module Integrations
class << self
def register_library(klass, name)

View file

@ -1,6 +1,7 @@
module Shoulda
module Matchers
module Integrations
# @private
class ConfigurationError < StandardError
end
end

View file

@ -1,6 +1,7 @@
module Shoulda
module Matchers
module Integrations
# @private
module Inclusion
def include_into(mod, *other_mods, &block)
mods_to_include = other_mods.dup

View file

@ -3,3 +3,13 @@ require 'shoulda/matchers/integrations/libraries/active_model'
require 'shoulda/matchers/integrations/libraries/active_record'
require 'shoulda/matchers/integrations/libraries/missing_library'
require 'shoulda/matchers/integrations/libraries/rails'
module Shoulda
module Matchers
module Integrations
# @private
module Libraries
end
end
end
end

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module Libraries
# @private
class ActionController
Integrations.register_library(self, :action_controller)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module Libraries
# @private
class ActiveModel
Integrations.register_library(self, :active_model)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module Libraries
# @private
class ActiveRecord
Integrations.register_library(self, :active_record)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module Libraries
# @private
class MissingLibrary
Integrations.register_library(self, :missing_library)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module Libraries
# @private
class Rails
Integrations.register_library(self, :rails)

View file

@ -1,6 +1,7 @@
module Shoulda
module Matchers
module Integrations
# @private
module Rails
def rails?
true

View file

@ -1,6 +1,7 @@
module Shoulda
module Matchers
module Integrations
# @private
class Registry
def register(klass, name)
registry[name] = klass

View file

@ -4,3 +4,13 @@ require 'shoulda/matchers/integrations/test_frameworks/minitest_5'
require 'shoulda/matchers/integrations/test_frameworks/missing_test_framework'
require 'shoulda/matchers/integrations/test_frameworks/rspec'
require 'shoulda/matchers/integrations/test_frameworks/test_unit'
module Shoulda
module Matchers
module Integrations
# @private
module TestFrameworks
end
end
end
end

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class ActiveSupportTestCase
Integrations.register_test_framework(self, :active_support_test_case)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class Minitest4
Integrations.register_test_framework(self, :minitest_4)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class Minitest5
Integrations.register_test_framework(self, :minitest_5)
Integrations.register_test_framework(self, :minitest)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class MissingTestFramework
Integrations.register_test_framework(self, :missing_test_framework)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class Rspec
Integrations.register_test_framework(self, :rspec)

View file

@ -2,6 +2,7 @@ module Shoulda
module Matchers
module Integrations
module TestFrameworks
# @private
class TestUnit
Integrations.register_test_framework(self, :test_unit)