shoulda-matchers 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shoulda/matchers.rb +12 -13
- data/lib/shoulda/matchers/action_controller.rb +13 -13
- data/lib/shoulda/matchers/active_model.rb +26 -15
- data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +0 -9
- data/lib/shoulda/matchers/active_model/numericality_matchers.rb +0 -5
- data/lib/shoulda/matchers/active_model/validation_matcher.rb +0 -2
- data/lib/shoulda/matchers/active_record.rb +25 -13
- data/lib/shoulda/matchers/active_record/association_matchers.rb +0 -12
- data/lib/shoulda/matchers/active_record/uniqueness.rb +5 -5
- data/lib/shoulda/matchers/doublespeak.rb +7 -8
- data/lib/shoulda/matchers/independent.rb +1 -0
- data/lib/shoulda/matchers/independent/delegate_method_matcher.rb +0 -3
- data/lib/shoulda/matchers/integrations.rb +6 -6
- data/lib/shoulda/matchers/integrations/test_frameworks.rb +2 -4
- data/lib/shoulda/matchers/util.rb +2 -0
- data/lib/shoulda/matchers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f12034724c2954cf58fc7e89723ce42119e3a6f39676899c0510545a61f5fee
|
4
|
+
data.tar.gz: 0c5cd62168c0dd00fa3246c9afe2ee4499db8c37312ff6f0f8ee10afb16f0f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e33ed5061a6913d3b448f2f251e79a7618c9226275a308bf5a0547a81dddb4fbaf17a8834ddf3a1e3662cc712afaf6994bb9ea44a727adcdffbd41653ced13c
|
7
|
+
data.tar.gz: e7ca6969c599eeb2fa8a084a4486085b6156760d0a77a1466d3989c0a9f15b7b092d7cdb7f4e2bbdf1befd5437afbd69121316e2ba6d9b271c809e3abfad82d1
|
data/lib/shoulda/matchers.rb
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
require 'shoulda/matchers/configuration'
|
2
|
+
require 'shoulda/matchers/doublespeak'
|
3
|
+
require 'shoulda/matchers/error'
|
4
|
+
require 'shoulda/matchers/independent'
|
5
|
+
require 'shoulda/matchers/integrations'
|
6
|
+
require 'shoulda/matchers/matcher_context'
|
7
|
+
require 'shoulda/matchers/rails_shim'
|
8
|
+
require 'shoulda/matchers/util'
|
2
9
|
require 'shoulda/matchers/version'
|
3
10
|
require 'shoulda/matchers/warn'
|
4
11
|
|
12
|
+
require 'shoulda/matchers/action_controller'
|
13
|
+
require 'shoulda/matchers/active_model'
|
14
|
+
require 'shoulda/matchers/active_record'
|
15
|
+
require 'shoulda/matchers/routing'
|
16
|
+
|
5
17
|
module Shoulda
|
6
18
|
module Matchers
|
7
|
-
autoload :ActionController, 'shoulda/matchers/action_controller'
|
8
|
-
autoload :ActiveModel, 'shoulda/matchers/active_model'
|
9
|
-
autoload :ActiveRecord, 'shoulda/matchers/active_record'
|
10
|
-
autoload :Doublespeak, 'shoulda/matchers/doublespeak'
|
11
|
-
autoload :Error, 'shoulda/matchers/error'
|
12
|
-
autoload :Independent, 'shoulda/matchers/independent'
|
13
|
-
autoload :Integrations, 'shoulda/matchers/integrations'
|
14
|
-
autoload :MatcherContext, 'shoulda/matchers/matcher_context'
|
15
|
-
autoload :RailsShim, 'shoulda/matchers/rails_shim'
|
16
|
-
autoload :Routing, 'shoulda/matchers/routing'
|
17
|
-
autoload :Util, 'shoulda/matchers/util'
|
18
|
-
autoload :WordWrap, 'shoulda/matchers/util/word_wrap'
|
19
|
-
|
20
19
|
class << self
|
21
20
|
# @private
|
22
21
|
attr_accessor :assertion_exception_class
|
@@ -1,24 +1,24 @@
|
|
1
|
+
require 'shoulda/matchers/action_controller/filter_param_matcher'
|
2
|
+
require 'shoulda/matchers/action_controller/route_params'
|
3
|
+
require 'shoulda/matchers/action_controller/set_flash_matcher'
|
4
|
+
require 'shoulda/matchers/action_controller/render_with_layout_matcher'
|
1
5
|
require 'shoulda/matchers/action_controller/respond_with_matcher'
|
6
|
+
require 'shoulda/matchers/action_controller/set_session_matcher'
|
2
7
|
require 'shoulda/matchers/action_controller/route_matcher'
|
8
|
+
require 'shoulda/matchers/action_controller/redirect_to_matcher'
|
9
|
+
require 'shoulda/matchers/action_controller/render_template_matcher'
|
10
|
+
require 'shoulda/matchers/action_controller/rescue_from_matcher'
|
11
|
+
require 'shoulda/matchers/action_controller/callback_matcher'
|
12
|
+
require 'shoulda/matchers/action_controller/permit_matcher'
|
13
|
+
require 'shoulda/matchers/action_controller/set_session_or_flash_matcher'
|
14
|
+
require 'shoulda/matchers/action_controller/flash_store'
|
15
|
+
require 'shoulda/matchers/action_controller/session_store'
|
3
16
|
|
4
17
|
module Shoulda
|
5
18
|
module Matchers
|
6
19
|
# This module provides matchers that are used to test behavior within
|
7
20
|
# controllers.
|
8
21
|
module ActionController
|
9
|
-
autoload :CallbackMatcher, 'shoulda/matchers/action_controller/callback_matcher'
|
10
|
-
autoload :FlashStore, 'shoulda/matchers/action_controller/flash_store'
|
11
|
-
autoload :FilterParamMatcher, 'shoulda/matchers/action_controller/filter_param_matcher'
|
12
|
-
autoload :PermitMatcher, 'shoulda/matchers/action_controller/permit_matcher'
|
13
|
-
autoload :RedirectToMatcher, 'shoulda/matchers/action_controller/redirect_to_matcher'
|
14
|
-
autoload :RenderTemplateMatcher, 'shoulda/matchers/action_controller/render_template_matcher'
|
15
|
-
autoload :RenderWithLayoutMatcher, 'shoulda/matchers/action_controller/render_with_layout_matcher'
|
16
|
-
autoload :RescueFromMatcher, 'shoulda/matchers/action_controller/rescue_from_matcher'
|
17
|
-
autoload :RouteParams, 'shoulda/matchers/action_controller/route_params'
|
18
|
-
autoload :SessionStore, 'shoulda/matchers/action_controller/session_store'
|
19
|
-
autoload :SetFlashMatcher, 'shoulda/matchers/action_controller/set_flash_matcher'
|
20
|
-
autoload :SetSessionMatcher, 'shoulda/matchers/action_controller/set_session_matcher'
|
21
|
-
autoload :SetSessionOrFlashMatcher, 'shoulda/matchers/action_controller/set_session_or_flash_matcher'
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -1,9 +1,34 @@
|
|
1
|
-
require 'shoulda/matchers/active_model/allow_mass_assignment_of_matcher'
|
2
1
|
require 'shoulda/matchers/active_model/helpers'
|
3
2
|
require 'shoulda/matchers/active_model/qualifiers'
|
4
3
|
require 'shoulda/matchers/active_model/validation_matcher'
|
4
|
+
require 'shoulda/matchers/active_model/validation_matcher/build_description'
|
5
|
+
require 'shoulda/matchers/active_model/validator'
|
6
|
+
require 'shoulda/matchers/active_model/allow_value_matcher'
|
7
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error'
|
8
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error'
|
9
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_setter'
|
10
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator'
|
11
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_setters'
|
12
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators'
|
13
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/successful_check'
|
14
|
+
require 'shoulda/matchers/active_model/allow_value_matcher/successful_setting'
|
15
|
+
require 'shoulda/matchers/active_model/disallow_value_matcher'
|
16
|
+
require 'shoulda/matchers/active_model/validate_length_of_matcher'
|
17
|
+
require 'shoulda/matchers/active_model/validate_inclusion_of_matcher'
|
18
|
+
require 'shoulda/matchers/active_model/validate_exclusion_of_matcher'
|
5
19
|
require 'shoulda/matchers/active_model/validate_absence_of_matcher'
|
6
20
|
require 'shoulda/matchers/active_model/validate_presence_of_matcher'
|
21
|
+
require 'shoulda/matchers/active_model/validate_acceptance_of_matcher'
|
22
|
+
require 'shoulda/matchers/active_model/validate_confirmation_of_matcher'
|
23
|
+
require 'shoulda/matchers/active_model/validate_numericality_of_matcher'
|
24
|
+
require 'shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher'
|
25
|
+
require 'shoulda/matchers/active_model/numericality_matchers/comparison_matcher'
|
26
|
+
require 'shoulda/matchers/active_model/numericality_matchers/odd_number_matcher'
|
27
|
+
require 'shoulda/matchers/active_model/numericality_matchers/even_number_matcher'
|
28
|
+
require 'shoulda/matchers/active_model/numericality_matchers/only_integer_matcher'
|
29
|
+
require 'shoulda/matchers/active_model/allow_mass_assignment_of_matcher'
|
30
|
+
require 'shoulda/matchers/active_model/errors'
|
31
|
+
require 'shoulda/matchers/active_model/have_secure_password_matcher'
|
7
32
|
|
8
33
|
module Shoulda
|
9
34
|
module Matchers
|
@@ -64,20 +89,6 @@ module Shoulda
|
|
64
89
|
# end
|
65
90
|
#
|
66
91
|
module ActiveModel
|
67
|
-
autoload :AllowValueMatcher, 'shoulda/matchers/active_model/allow_value_matcher'
|
68
|
-
autoload :CouldNotDetermineValueOutsideOfArray, 'shoulda/matchers/active_model/errors'
|
69
|
-
autoload :CouldNotSetPasswordError, 'shoulda/matchers/active_model/errors'
|
70
|
-
autoload :DisallowValueMatcher, 'shoulda/matchers/active_model/disallow_value_matcher'
|
71
|
-
autoload :HaveSecurePasswordMatcher, 'shoulda/matchers/active_model/have_secure_password_matcher'
|
72
|
-
autoload :NonNullableBooleanError, 'shoulda/matchers/active_model/errors'
|
73
|
-
autoload :NumericalityMatchers, 'shoulda/matchers/active_model/numericality_matchers'
|
74
|
-
autoload :ValidateAcceptanceOfMatcher, 'shoulda/matchers/active_model/validate_acceptance_of_matcher'
|
75
|
-
autoload :ValidateConfirmationOfMatcher, 'shoulda/matchers/active_model/validate_confirmation_of_matcher'
|
76
|
-
autoload :ValidateExclusionOfMatcher, 'shoulda/matchers/active_model/validate_exclusion_of_matcher'
|
77
|
-
autoload :ValidateInclusionOfMatcher, 'shoulda/matchers/active_model/validate_inclusion_of_matcher'
|
78
|
-
autoload :ValidateLengthOfMatcher, 'shoulda/matchers/active_model/validate_length_of_matcher'
|
79
|
-
autoload :ValidateNumericalityOfMatcher, 'shoulda/matchers/active_model/validate_numericality_of_matcher'
|
80
|
-
autoload :Validator, 'shoulda/matchers/active_model/validator'
|
81
92
|
end
|
82
93
|
end
|
83
94
|
end
|
@@ -305,15 +305,6 @@ module Shoulda
|
|
305
305
|
|
306
306
|
# @private
|
307
307
|
class AllowValueMatcher
|
308
|
-
autoload :AttributeChangedValueError, 'shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error'
|
309
|
-
autoload :AttributeDoesNotExistError, 'shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error'
|
310
|
-
autoload :AttributeSetter, 'shoulda/matchers/active_model/allow_value_matcher/attribute_setter'
|
311
|
-
autoload :AttributeSetterAndValidator, 'shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator'
|
312
|
-
autoload :AttributeSetters, 'shoulda/matchers/active_model/allow_value_matcher/attribute_setters'
|
313
|
-
autoload :AttributeSettersAndValidators, 'shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators'
|
314
|
-
autoload :SuccessfulCheck, 'shoulda/matchers/active_model/allow_value_matcher/successful_check'
|
315
|
-
autoload :SuccessfulSetting, 'shoulda/matchers/active_model/allow_value_matcher/successful_setting'
|
316
|
-
|
317
308
|
include Helpers
|
318
309
|
include Qualifiers::IgnoringInterferenceByWriter
|
319
310
|
|
@@ -3,11 +3,6 @@ module Shoulda
|
|
3
3
|
module ActiveModel
|
4
4
|
# @private
|
5
5
|
module NumericalityMatchers
|
6
|
-
autoload :ComparisonMatcher, 'shoulda/matchers/active_model/numericality_matchers/comparison_matcher'
|
7
|
-
autoload :EvenNumberMatcher, 'shoulda/matchers/active_model/numericality_matchers/even_number_matcher'
|
8
|
-
autoload :NumericTypeMatcher, 'shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher'
|
9
|
-
autoload :OddNumberMatcher, 'shoulda/matchers/active_model/numericality_matchers/odd_number_matcher'
|
10
|
-
autoload :OnlyIntegerMatcher, 'shoulda/matchers/active_model/numericality_matchers/only_integer_matcher'
|
11
6
|
end
|
12
7
|
end
|
13
8
|
end
|
@@ -1,23 +1,35 @@
|
|
1
|
+
require "shoulda/matchers/active_record/association_matcher"
|
2
|
+
require "shoulda/matchers/active_record/association_matchers"
|
3
|
+
require "shoulda/matchers/active_record/association_matchers/counter_cache_matcher"
|
4
|
+
require "shoulda/matchers/active_record/association_matchers/inverse_of_matcher"
|
5
|
+
require "shoulda/matchers/active_record/association_matchers/join_table_matcher"
|
6
|
+
require "shoulda/matchers/active_record/association_matchers/order_matcher"
|
7
|
+
require "shoulda/matchers/active_record/association_matchers/through_matcher"
|
8
|
+
require "shoulda/matchers/active_record/association_matchers/dependent_matcher"
|
9
|
+
require "shoulda/matchers/active_record/association_matchers/required_matcher"
|
10
|
+
require "shoulda/matchers/active_record/association_matchers/optional_matcher"
|
11
|
+
require "shoulda/matchers/active_record/association_matchers/source_matcher"
|
12
|
+
require "shoulda/matchers/active_record/association_matchers/model_reflector"
|
13
|
+
require "shoulda/matchers/active_record/association_matchers/model_reflection"
|
14
|
+
require "shoulda/matchers/active_record/association_matchers/option_verifier"
|
15
|
+
require "shoulda/matchers/active_record/have_db_column_matcher"
|
16
|
+
require "shoulda/matchers/active_record/have_db_index_matcher"
|
17
|
+
require "shoulda/matchers/active_record/have_implicit_order_column"
|
18
|
+
require "shoulda/matchers/active_record/have_readonly_attribute_matcher"
|
19
|
+
require "shoulda/matchers/active_record/have_rich_text_matcher"
|
20
|
+
require "shoulda/matchers/active_record/have_secure_token_matcher"
|
21
|
+
require "shoulda/matchers/active_record/serialize_matcher"
|
22
|
+
require "shoulda/matchers/active_record/accept_nested_attributes_for_matcher"
|
23
|
+
require "shoulda/matchers/active_record/define_enum_for_matcher"
|
24
|
+
require "shoulda/matchers/active_record/uniqueness"
|
1
25
|
require "shoulda/matchers/active_record/validate_uniqueness_of_matcher"
|
26
|
+
require "shoulda/matchers/active_record/have_attached_matcher"
|
2
27
|
|
3
28
|
module Shoulda
|
4
29
|
module Matchers
|
5
30
|
# This module provides matchers that are used to test behavior within
|
6
31
|
# ActiveRecord classes.
|
7
32
|
module ActiveRecord
|
8
|
-
autoload :AcceptNestedAttributesForMatcher, 'shoulda/matchers/active_record/accept_nested_attributes_for_matcher'
|
9
|
-
autoload :AssociationMatcher, 'shoulda/matchers/active_record/association_matcher'
|
10
|
-
autoload :AssociationMatchers, 'shoulda/matchers/active_record/association_matchers'
|
11
|
-
autoload :DefineEnumForMatcher, 'shoulda/matchers/active_record/define_enum_for_matcher'
|
12
|
-
autoload :HaveAttachedMatcher, 'shoulda/matchers/active_record/have_attached_matcher'
|
13
|
-
autoload :HaveDbColumnMatcher, 'shoulda/matchers/active_record/have_db_column_matcher'
|
14
|
-
autoload :HaveDbIndexMatcher, 'shoulda/matchers/active_record/have_db_index_matcher'
|
15
|
-
autoload :HaveImplicitOrderColumnMatcher, 'shoulda/matchers/active_record/have_implicit_order_column'
|
16
|
-
autoload :HaveReadonlyAttributeMatcher, 'shoulda/matchers/active_record/have_readonly_attribute_matcher'
|
17
|
-
autoload :HaveRichText, 'shoulda/matchers/active_record/have_rich_text_matcher'
|
18
|
-
autoload :HaveSecureTokenMatcher, 'shoulda/matchers/active_record/have_secure_token_matcher'
|
19
|
-
autoload :SerializeMatcher, 'shoulda/matchers/active_record/serialize_matcher'
|
20
|
-
autoload :Uniqueness, 'shoulda/matchers/active_record/uniqueness'
|
21
33
|
end
|
22
34
|
end
|
23
35
|
end
|
@@ -3,18 +3,6 @@ module Shoulda
|
|
3
3
|
module ActiveRecord
|
4
4
|
# @private
|
5
5
|
module AssociationMatchers
|
6
|
-
autoload :CounterCacheMatcher, 'shoulda/matchers/active_record/association_matchers/counter_cache_matcher'
|
7
|
-
autoload :InverseOfMatcher, 'shoulda/matchers/active_record/association_matchers/inverse_of_matcher'
|
8
|
-
autoload :JoinTableMatcher, 'shoulda/matchers/active_record/association_matchers/join_table_matcher'
|
9
|
-
autoload :OrderMatcher, 'shoulda/matchers/active_record/association_matchers/order_matcher'
|
10
|
-
autoload :ThroughMatcher, 'shoulda/matchers/active_record/association_matchers/through_matcher'
|
11
|
-
autoload :DependentMatcher, 'shoulda/matchers/active_record/association_matchers/dependent_matcher'
|
12
|
-
autoload :RequiredMatcher, 'shoulda/matchers/active_record/association_matchers/required_matcher'
|
13
|
-
autoload :OptionalMatcher, 'shoulda/matchers/active_record/association_matchers/optional_matcher'
|
14
|
-
autoload :SourceMatcher, 'shoulda/matchers/active_record/association_matchers/source_matcher'
|
15
|
-
autoload :ModelReflector, 'shoulda/matchers/active_record/association_matchers/model_reflector'
|
16
|
-
autoload :ModelReflection, 'shoulda/matchers/active_record/association_matchers/model_reflection'
|
17
|
-
autoload :OptionVerifier, 'shoulda/matchers/active_record/association_matchers/option_verifier'
|
18
6
|
end
|
19
7
|
end
|
20
8
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module Shoulda
|
2
2
|
module Matchers
|
3
|
-
module
|
3
|
+
module ActiveModel
|
4
4
|
# @private
|
5
5
|
module Uniqueness
|
6
|
-
autoload :Model, 'shoulda/matchers/active_record/uniqueness/model'
|
7
|
-
autoload :Namespace, 'shoulda/matchers/active_record/uniqueness/namespace'
|
8
|
-
autoload :TestModelCreator, 'shoulda/matchers/active_record/uniqueness/test_model_creator'
|
9
|
-
autoload :TestModels, 'shoulda/matchers/active_record/uniqueness/test_models'
|
10
6
|
end
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|
14
10
|
|
11
|
+
require 'shoulda/matchers/active_record/uniqueness/model'
|
12
|
+
require 'shoulda/matchers/active_record/uniqueness/namespace'
|
13
|
+
require 'shoulda/matchers/active_record/uniqueness/test_model_creator'
|
14
|
+
require 'shoulda/matchers/active_record/uniqueness/test_models'
|
@@ -4,14 +4,6 @@ module Shoulda
|
|
4
4
|
module Matchers
|
5
5
|
# @private
|
6
6
|
module Doublespeak
|
7
|
-
autoload :Double, 'shoulda/matchers/doublespeak/double'
|
8
|
-
autoload :DoubleCollection, 'shoulda/matchers/doublespeak/double_collection'
|
9
|
-
autoload :DoubleImplementationRegistry, 'shoulda/matchers/doublespeak/double_implementation_registry'
|
10
|
-
autoload :MethodCall, 'shoulda/matchers/doublespeak/method_call'
|
11
|
-
autoload :ObjectDouble, 'shoulda/matchers/doublespeak/object_double'
|
12
|
-
autoload :ProxyImplementation, 'shoulda/matchers/doublespeak/proxy_implementation'
|
13
|
-
autoload :World, 'shoulda/matchers/doublespeak/world'
|
14
|
-
|
15
7
|
class << self
|
16
8
|
extend Forwardable
|
17
9
|
|
@@ -36,4 +28,11 @@ module Shoulda
|
|
36
28
|
end
|
37
29
|
end
|
38
30
|
|
31
|
+
require 'shoulda/matchers/doublespeak/double'
|
32
|
+
require 'shoulda/matchers/doublespeak/double_collection'
|
33
|
+
require 'shoulda/matchers/doublespeak/double_implementation_registry'
|
34
|
+
require 'shoulda/matchers/doublespeak/method_call'
|
35
|
+
require 'shoulda/matchers/doublespeak/object_double'
|
36
|
+
require 'shoulda/matchers/doublespeak/proxy_implementation'
|
39
37
|
require 'shoulda/matchers/doublespeak/stub_implementation'
|
38
|
+
require 'shoulda/matchers/doublespeak/world'
|
@@ -176,9 +176,6 @@ module Shoulda
|
|
176
176
|
|
177
177
|
# @private
|
178
178
|
class DelegateMethodMatcher
|
179
|
-
autoload :StubbedTarget, 'shoulda/matchers/independent/delegate_method_matcher/stubbed_target'
|
180
|
-
autoload :DelegateObjectNotSpecified, 'shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error'
|
181
|
-
|
182
179
|
def initialize(delegating_method)
|
183
180
|
@delegating_method = delegating_method
|
184
181
|
|
@@ -2,12 +2,6 @@ module Shoulda
|
|
2
2
|
module Matchers
|
3
3
|
# @private
|
4
4
|
module Integrations
|
5
|
-
autoload :Configuration, 'shoulda/matchers/integrations/configuration'
|
6
|
-
autoload :ConfigurationError, 'shoulda/matchers/integrations/configuration_error'
|
7
|
-
autoload :Inclusion, 'shoulda/matchers/integrations/inclusion'
|
8
|
-
autoload :Rails, 'shoulda/matchers/integrations/rails'
|
9
|
-
autoload :Registry, 'shoulda/matchers/integrations/registry'
|
10
|
-
|
11
5
|
class << self
|
12
6
|
def register_library(klass, name)
|
13
7
|
library_registry.register(klass, name)
|
@@ -39,5 +33,11 @@ module Shoulda
|
|
39
33
|
end
|
40
34
|
end
|
41
35
|
|
36
|
+
require 'shoulda/matchers/integrations/configuration'
|
37
|
+
require 'shoulda/matchers/integrations/configuration_error'
|
38
|
+
require 'shoulda/matchers/integrations/inclusion'
|
39
|
+
require 'shoulda/matchers/integrations/rails'
|
40
|
+
require 'shoulda/matchers/integrations/registry'
|
41
|
+
|
42
42
|
require 'shoulda/matchers/integrations/libraries'
|
43
43
|
require 'shoulda/matchers/integrations/test_frameworks'
|
@@ -1,17 +1,15 @@
|
|
1
|
+
require 'shoulda/matchers/integrations/test_frameworks/active_support_test_case'
|
1
2
|
require 'shoulda/matchers/integrations/test_frameworks/minitest_4'
|
2
3
|
require 'shoulda/matchers/integrations/test_frameworks/minitest_5'
|
3
4
|
require 'shoulda/matchers/integrations/test_frameworks/missing_test_framework'
|
4
5
|
require 'shoulda/matchers/integrations/test_frameworks/rspec'
|
6
|
+
require 'shoulda/matchers/integrations/test_frameworks/test_unit'
|
5
7
|
|
6
8
|
module Shoulda
|
7
9
|
module Matchers
|
8
10
|
module Integrations
|
9
11
|
# @private
|
10
12
|
module TestFrameworks
|
11
|
-
autoload :ActiveSupportTestCase, 'shoulda/matchers/integrations/test_frameworks/active_support_test_case'
|
12
|
-
autoload :Minitest4, 'shoulda/matchers/integrations/test_frameworks/minitest_4'
|
13
|
-
autoload :Minitest5, 'shoulda/matchers/integrations/test_frameworks/minitest_5'
|
14
|
-
autoload :TestUnit, 'shoulda/matchers/integrations/test_frameworks/test_unit'
|
15
13
|
end
|
16
14
|
end
|
17
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoulda-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tammer Saleh
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2020-08-
|
17
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: activesupport
|