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:
parent
696f1d8536
commit
3e2c4e11ae
20 changed files with 38 additions and 0 deletions
|
@ -16,6 +16,7 @@ require 'shoulda/matchers/active_record'
|
|||
module Shoulda
|
||||
module Matchers
|
||||
class << self
|
||||
# @private
|
||||
attr_accessor :assertion_exception_class
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
module Shoulda
|
||||
module Matchers
|
||||
# @private
|
||||
module Integrations
|
||||
class << self
|
||||
def register_library(klass, name)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module Shoulda
|
||||
module Matchers
|
||||
module Integrations
|
||||
# @private
|
||||
class ConfigurationError < StandardError
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module Libraries
|
||||
# @private
|
||||
class ActionController
|
||||
Integrations.register_library(self, :action_controller)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module Libraries
|
||||
# @private
|
||||
class ActiveModel
|
||||
Integrations.register_library(self, :active_model)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module Libraries
|
||||
# @private
|
||||
class ActiveRecord
|
||||
Integrations.register_library(self, :active_record)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module Libraries
|
||||
# @private
|
||||
class MissingLibrary
|
||||
Integrations.register_library(self, :missing_library)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module Libraries
|
||||
# @private
|
||||
class Rails
|
||||
Integrations.register_library(self, :rails)
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module Shoulda
|
||||
module Matchers
|
||||
module Integrations
|
||||
# @private
|
||||
module Rails
|
||||
def rails?
|
||||
true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module Shoulda
|
||||
module Matchers
|
||||
module Integrations
|
||||
# @private
|
||||
class Registry
|
||||
def register(klass, name)
|
||||
registry[name] = klass
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module TestFrameworks
|
||||
# @private
|
||||
class ActiveSupportTestCase
|
||||
Integrations.register_test_framework(self, :active_support_test_case)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module TestFrameworks
|
||||
# @private
|
||||
class Minitest4
|
||||
Integrations.register_test_framework(self, :minitest_4)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module TestFrameworks
|
||||
# @private
|
||||
class MissingTestFramework
|
||||
Integrations.register_test_framework(self, :missing_test_framework)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module TestFrameworks
|
||||
# @private
|
||||
class Rspec
|
||||
Integrations.register_test_framework(self, :rspec)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ module Shoulda
|
|||
module Matchers
|
||||
module Integrations
|
||||
module TestFrameworks
|
||||
# @private
|
||||
class TestUnit
|
||||
Integrations.register_test_framework(self, :test_unit)
|
||||
|
||||
|
|
Loading…
Reference in a new issue