shoulda-matchers 2.7.0 → 2.8.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -3
  3. data/Appraisals +18 -0
  4. data/CONTRIBUTING.md +13 -29
  5. data/Gemfile +1 -4
  6. data/Gemfile.lock +2 -10
  7. data/NEWS.md +100 -14
  8. data/README.md +62 -58
  9. data/Rakefile +9 -16
  10. data/gemfiles/3.0.gemfile +11 -12
  11. data/gemfiles/3.0.gemfile.lock +15 -10
  12. data/gemfiles/3.1.gemfile +11 -12
  13. data/gemfiles/3.1.gemfile.lock +14 -10
  14. data/gemfiles/3.1_1.9.2.gemfile +12 -11
  15. data/gemfiles/3.1_1.9.2.gemfile.lock +14 -3
  16. data/gemfiles/3.2.gemfile +11 -12
  17. data/gemfiles/3.2.gemfile.lock +15 -10
  18. data/gemfiles/3.2_1.9.2.gemfile +12 -11
  19. data/gemfiles/3.2_1.9.2.gemfile.lock +14 -2
  20. data/gemfiles/4.0.0.gemfile +10 -12
  21. data/gemfiles/4.0.0.gemfile.lock +13 -10
  22. data/gemfiles/4.0.1.gemfile +10 -12
  23. data/gemfiles/4.0.1.gemfile.lock +13 -10
  24. data/gemfiles/4.1.gemfile +13 -15
  25. data/gemfiles/4.1.gemfile.lock +45 -50
  26. data/gemfiles/4.2.gemfile +36 -0
  27. data/gemfiles/4.2.gemfile.lock +245 -0
  28. data/lib/shoulda/matchers.rb +3 -1
  29. data/lib/shoulda/matchers/action_controller.rb +1 -1
  30. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +1 -1
  31. data/lib/shoulda/matchers/action_controller/route_params.rb +9 -4
  32. data/lib/shoulda/matchers/action_controller/{set_the_flash_matcher.rb → set_flash_matcher.rb} +34 -26
  33. data/lib/shoulda/matchers/action_controller/set_session_matcher.rb +125 -69
  34. data/lib/shoulda/matchers/active_model.rb +1 -2
  35. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +18 -5
  36. data/lib/shoulda/matchers/active_model/exception_message_finder.rb +2 -2
  37. data/lib/shoulda/matchers/active_model/helpers.rb +4 -4
  38. data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +10 -3
  39. data/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb +1 -1
  40. data/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +3 -1
  41. data/lib/shoulda/matchers/active_model/{ensure_length_of_matcher.rb → validate_length_of_matcher.rb} +30 -20
  42. data/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +21 -0
  43. data/lib/shoulda/matchers/active_model/validation_message_finder.rb +2 -2
  44. data/lib/shoulda/matchers/active_record.rb +2 -0
  45. data/lib/shoulda/matchers/active_record/association_matcher.rb +96 -2
  46. data/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb +1 -1
  47. data/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb +3 -3
  48. data/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb +22 -2
  49. data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +30 -4
  50. data/lib/shoulda/matchers/active_record/serialize_matcher.rb +19 -3
  51. data/lib/shoulda/matchers/active_record/uniqueness.rb +14 -0
  52. data/lib/shoulda/matchers/active_record/uniqueness/model.rb +45 -0
  53. data/lib/shoulda/matchers/active_record/uniqueness/namespace.rb +36 -0
  54. data/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb +50 -0
  55. data/lib/shoulda/matchers/active_record/uniqueness/test_models.rb +24 -0
  56. data/lib/shoulda/matchers/{active_model → active_record}/validate_uniqueness_of_matcher.rb +76 -16
  57. data/lib/shoulda/matchers/independent/delegate_method_matcher.rb +117 -51
  58. data/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb +1 -1
  59. data/lib/shoulda/matchers/matcher_context.rb +35 -0
  60. data/lib/shoulda/matchers/rails_shim.rb +23 -0
  61. data/lib/shoulda/matchers/util.rb +28 -0
  62. data/lib/shoulda/matchers/version.rb +1 -1
  63. data/script/SUPPORTED_VERSIONS +1 -1
  64. data/spec/acceptance/active_model_integration_spec.rb +20 -0
  65. data/spec/acceptance/independent_matchers_spec.rb +64 -0
  66. data/spec/acceptance/rails_integration_spec.rb +142 -0
  67. data/spec/acceptance_spec_helper.rb +23 -0
  68. data/spec/support/acceptance/helpers.rb +29 -0
  69. data/spec/support/acceptance/helpers/active_model_helpers.rb +11 -0
  70. data/spec/support/acceptance/helpers/array_helpers.rb +13 -0
  71. data/spec/support/acceptance/helpers/base_helpers.rb +14 -0
  72. data/spec/support/acceptance/helpers/command_helpers.rb +51 -0
  73. data/spec/support/acceptance/helpers/file_helpers.rb +19 -0
  74. data/spec/support/acceptance/helpers/gem_helpers.rb +31 -0
  75. data/spec/support/acceptance/helpers/minitest_helpers.rb +19 -0
  76. data/spec/support/acceptance/helpers/pluralization_helpers.rb +13 -0
  77. data/spec/support/acceptance/helpers/rails_version_helpers.rb +11 -0
  78. data/spec/support/acceptance/helpers/rspec_helpers.rb +26 -0
  79. data/spec/support/acceptance/helpers/ruby_version_helpers.rb +9 -0
  80. data/spec/support/acceptance/helpers/step_helpers.rb +117 -0
  81. data/spec/support/acceptance/matchers/have_output.rb +31 -0
  82. data/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb +55 -0
  83. data/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb +103 -0
  84. data/spec/support/tests/bundle.rb +94 -0
  85. data/spec/support/tests/command_runner.rb +214 -0
  86. data/spec/support/tests/filesystem.rb +77 -0
  87. data/spec/support/tests/version.rb +45 -0
  88. data/spec/support/unit/capture.rb +34 -0
  89. data/spec/support/unit/helpers/active_model_helpers.rb +25 -0
  90. data/spec/support/unit/helpers/active_model_versions.rb +20 -0
  91. data/spec/support/unit/helpers/active_resource_builder.rb +27 -0
  92. data/spec/support/unit/helpers/allow_value_matcher_helpers.rb +15 -0
  93. data/spec/support/unit/helpers/class_builder.rb +72 -0
  94. data/spec/support/unit/helpers/confirmation_matcher_helpers.rb +17 -0
  95. data/spec/support/unit/helpers/controller_builder.rb +91 -0
  96. data/spec/support/unit/helpers/i18n_faker.rb +15 -0
  97. data/spec/support/unit/helpers/mailer_builder.rb +12 -0
  98. data/spec/support/unit/helpers/model_builder.rb +102 -0
  99. data/spec/support/unit/helpers/rails_versions.rb +28 -0
  100. data/spec/support/unit/i18n.rb +7 -0
  101. data/spec/support/unit/matchers/deprecate.rb +60 -0
  102. data/spec/support/unit/matchers/fail_with_message_including_matcher.rb +50 -0
  103. data/spec/support/unit/matchers/fail_with_message_matcher.rb +50 -0
  104. data/spec/support/unit/matchers/print_warning_including.rb +59 -0
  105. data/spec/support/unit/rails_application.rb +110 -0
  106. data/spec/support/unit/record_builder_with_i18n_validation_message.rb +69 -0
  107. data/spec/support/unit/record_validating_confirmation_builder.rb +56 -0
  108. data/spec/support/unit/record_with_different_error_attribute_builder.rb +92 -0
  109. data/spec/support/{shared_examples → unit/shared_examples}/numerical_submatcher.rb +0 -2
  110. data/spec/support/{shared_examples → unit/shared_examples}/numerical_type_submatcher.rb +0 -2
  111. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/callback_matcher_spec.rb +2 -2
  112. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/filter_param_matcher_spec.rb +2 -2
  113. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/redirect_to_matcher_spec.rb +3 -3
  114. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/render_template_matcher_spec.rb +2 -4
  115. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/render_with_layout_matcher_spec.rb +9 -6
  116. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/rescue_from_matcher_spec.rb +2 -2
  117. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/respond_with_matcher_spec.rb +2 -2
  118. data/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb +126 -0
  119. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/route_params_spec.rb +2 -2
  120. data/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb +167 -0
  121. data/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb +294 -0
  122. data/spec/{shoulda → unit/shoulda}/matchers/action_controller/strong_parameters_matcher_spec.rb +19 -11
  123. data/spec/{shoulda → unit/shoulda}/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +2 -2
  124. data/spec/{shoulda → unit/shoulda}/matchers/active_model/allow_value_matcher_spec.rb +49 -21
  125. data/spec/{shoulda → unit/shoulda}/matchers/active_model/disallow_value_matcher_spec.rb +8 -4
  126. data/spec/{shoulda → unit/shoulda}/matchers/active_model/exception_message_finder_spec.rb +4 -4
  127. data/spec/{shoulda → unit/shoulda}/matchers/active_model/have_secure_password_matcher_spec.rb +2 -2
  128. data/spec/{shoulda → unit/shoulda}/matchers/active_model/helpers_spec.rb +7 -3
  129. data/spec/{shoulda → unit/shoulda}/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb +1 -1
  130. data/spec/{shoulda → unit/shoulda}/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb +1 -1
  131. data/spec/{shoulda → unit/shoulda}/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb +1 -1
  132. data/spec/{shoulda → unit/shoulda}/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb +1 -1
  133. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_absence_of_matcher_spec.rb +3 -3
  134. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_acceptance_of_matcher_spec.rb +2 -2
  135. data/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +63 -0
  136. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_exclusion_of_matcher_spec.rb +5 -4
  137. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_inclusion_of_matcher_spec.rb +7 -14
  138. data/spec/{shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb → unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb} +43 -23
  139. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_numericality_of_matcher_spec.rb +3 -4
  140. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_presence_of_matcher_spec.rb +3 -3
  141. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +127 -2
  142. data/spec/{shoulda → unit/shoulda}/matchers/active_model/validation_message_finder_spec.rb +8 -6
  143. data/spec/{shoulda → unit/shoulda}/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +2 -2
  144. data/spec/{shoulda → unit/shoulda}/matchers/active_record/association_matcher_spec.rb +217 -26
  145. data/spec/{shoulda → unit/shoulda}/matchers/active_record/association_matchers/model_reflection_spec.rb +2 -2
  146. data/spec/{shoulda → unit/shoulda}/matchers/active_record/define_enum_for_matcher_spec.rb +2 -2
  147. data/spec/{shoulda → unit/shoulda}/matchers/active_record/have_db_column_matcher_spec.rb +2 -2
  148. data/spec/{shoulda → unit/shoulda}/matchers/active_record/have_db_index_matcher_spec.rb +8 -5
  149. data/spec/{shoulda → unit/shoulda}/matchers/active_record/have_readonly_attributes_matcher_spec.rb +2 -2
  150. data/spec/{shoulda → unit/shoulda}/matchers/active_record/serialize_matcher_spec.rb +3 -3
  151. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/double_collection_spec.rb +29 -7
  152. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/double_implementation_registry_spec.rb +1 -1
  153. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/double_spec.rb +20 -10
  154. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/object_double_spec.rb +1 -1
  155. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/proxy_implementation_spec.rb +13 -6
  156. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak/stub_implementation_spec.rb +2 -2
  157. data/spec/unit/shoulda/matchers/doublespeak/world_spec.rb +77 -0
  158. data/spec/{shoulda → unit/shoulda}/matchers/doublespeak_spec.rb +11 -3
  159. data/spec/{shoulda → unit/shoulda}/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb +1 -1
  160. data/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb +517 -0
  161. data/spec/unit_spec_helper.rb +66 -0
  162. data/spec/warnings_spy/partitioner.rb +10 -3
  163. data/spec/warnings_spy/reader.rb +9 -20
  164. data/spec/warnings_spy/reporter.rb +2 -1
  165. metadata +212 -149
  166. data/features/activemodel_integration.feature +0 -15
  167. data/features/rails_integration.feature +0 -160
  168. data/features/step_definitions/activemodel_steps.rb +0 -21
  169. data/features/step_definitions/rails_steps.rb +0 -227
  170. data/features/support/env.rb +0 -6
  171. data/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +0 -70
  172. data/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +0 -113
  173. data/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +0 -153
  174. data/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +0 -47
  175. data/spec/shoulda/matchers/doublespeak/world_spec.rb +0 -70
  176. data/spec/shoulda/matchers/independent/delegate_method_matcher_spec.rb +0 -309
  177. data/spec/spec_helper.rb +0 -42
  178. data/spec/support/active_model_versions.rb +0 -13
  179. data/spec/support/active_resource_builder.rb +0 -29
  180. data/spec/support/activemodel_helpers.rb +0 -23
  181. data/spec/support/capture_helpers.rb +0 -19
  182. data/spec/support/class_builder.rb +0 -46
  183. data/spec/support/controller_builder.rb +0 -102
  184. data/spec/support/fail_with_message_including_matcher.rb +0 -44
  185. data/spec/support/fail_with_message_matcher.rb +0 -44
  186. data/spec/support/i18n_faker.rb +0 -10
  187. data/spec/support/mailer_builder.rb +0 -10
  188. data/spec/support/model_builder.rb +0 -81
  189. data/spec/support/rails_versions.rb +0 -26
  190. data/spec/support/test_application.rb +0 -120
@@ -0,0 +1,66 @@
1
+ require File.expand_path('../support/unit/rails_application', __FILE__)
2
+
3
+ def monkey_patch_minitest_to_do_nothing
4
+ # Rails 3.1's test_help file requires Turn, which loads Minitest in autorun
5
+ # mode. This means that Minitest tests will run after these RSpec tests are
6
+ # finished running. This will break on CI since we pass --color to the `rspec`
7
+ # command.
8
+
9
+ if defined?(MiniTest)
10
+ MiniTest::Unit.class_eval do
11
+ def run(*); end
12
+ end
13
+ end
14
+ end
15
+
16
+ $test_app = UnitTests::RailsApplication.new
17
+ $test_app.create
18
+ $test_app.load
19
+
20
+ monkey_patch_minitest_to_do_nothing
21
+
22
+ ENV['BUNDLE_GEMFILE'] ||= app.gemfile_path
23
+ ENV['RAILS_ENV'] = 'test'
24
+
25
+ require 'rspec/rails'
26
+ require 'shoulda-matchers'
27
+
28
+ PROJECT_ROOT = File.expand_path('../..', __FILE__)
29
+ $LOAD_PATH << File.join(PROJECT_ROOT, 'lib')
30
+
31
+ Dir[ File.join(File.expand_path('../support/unit/**/*.rb', __FILE__)) ].sort.each do |file|
32
+ require file
33
+ end
34
+
35
+ RSpec.configure do |config|
36
+ config.order = :random
37
+
38
+ config.expect_with :rspec do |c|
39
+ c.syntax = :expect
40
+ end
41
+
42
+ config.mock_with :rspec
43
+
44
+ if config.respond_to?(:infer_spec_type_from_file_location!)
45
+ config.infer_spec_type_from_file_location!
46
+ end
47
+
48
+ config.before(:all, type: :controller) do
49
+ self.class.controller(ApplicationController) { }
50
+ end
51
+
52
+ UnitTests::ActiveModelHelpers.configure_example_group(config)
53
+ UnitTests::ActiveModelVersions.configure_example_group(config)
54
+ UnitTests::ActiveResourceBuilder.configure_example_group(config)
55
+ UnitTests::ClassBuilder.configure_example_group(config)
56
+ UnitTests::ControllerBuilder.configure_example_group(config)
57
+ UnitTests::I18nFaker.configure_example_group(config)
58
+ UnitTests::MailerBuilder.configure_example_group(config)
59
+ UnitTests::ModelBuilder.configure_example_group(config)
60
+ UnitTests::RailsVersions.configure_example_group(config)
61
+
62
+ config.include UnitTests::Matchers
63
+ end
64
+
65
+ ActiveSupport::Deprecation.behavior = :stderr
66
+ $VERBOSE = true
@@ -13,9 +13,7 @@ class WarningsSpy
13
13
 
14
14
  def partition
15
15
  @relevant_warning_groups, @irrelevant_warning_groups =
16
- warning_groups.partition do |group|
17
- group.any? { |line| line.include?(search_text) }
18
- end
16
+ warning_groups.partition { |group| relevant_warnings?(group) }
19
17
  end
20
18
 
21
19
  protected
@@ -25,5 +23,14 @@ class WarningsSpy
25
23
  private
26
24
 
27
25
  def_delegators :reader, :warning_groups
26
+
27
+ def relevant_warnings?(group)
28
+ first_line = group[0]
29
+ first_line.start_with?("#{project_root}/lib")
30
+ end
31
+
32
+ def project_root
33
+ File.expand_path('../../..')
34
+ end
28
35
  end
29
36
  end
@@ -5,7 +5,6 @@ class WarningsSpy
5
5
  def initialize(filesystem)
6
6
  @warnings_file = filesystem.warnings_file
7
7
 
8
- @recording = false
9
8
  @current_group = []
10
9
  @warning_groups = []
11
10
  end
@@ -27,22 +26,20 @@ class WarningsSpy
27
26
  private
28
27
 
29
28
  def process_line(line)
30
- if backtrace_line?(line) && recording?
31
- current_group << line
32
- else
33
- unless current_group.empty?
34
- add_group(current_group)
35
- current_group.clear
36
- end
29
+ if start_of_group?(line)
30
+ add_group(current_group)
31
+ @current_group = []
32
+ end
37
33
 
38
- current_group << line
34
+ current_group << line
35
+ end
39
36
 
40
- @recording = true
41
- end
37
+ def start_of_group?(line)
38
+ line =~ /^\S/
42
39
  end
43
40
 
44
41
  def add_group(group)
45
- unless group_already_added?(group)
42
+ unless group.empty? || group_already_added?(group)
46
43
  warning_groups << group
47
44
  end
48
45
  end
@@ -52,13 +49,5 @@ class WarningsSpy
52
49
  group == group_to_be_added
53
50
  end
54
51
  end
55
-
56
- def backtrace_line?(line)
57
- line =~ /^\s+/
58
- end
59
-
60
- def recording?
61
- @recording
62
- end
63
52
  end
64
53
  end
@@ -26,7 +26,8 @@ class WarningsSpy
26
26
 
27
27
  private
28
28
 
29
- def_delegators :partitioner, :relevant_warning_groups, :irrelevant_warning_groups
29
+ def_delegators :partitioner, :relevant_warning_groups,
30
+ :irrelevant_warning_groups
30
31
 
31
32
  def report_relevant_warning_groups
32
33
  if relevant_warning_groups.any?
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: 2.7.0
4
+ version: 2.8.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tammer Saleh
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-09-03 00:00:00.000000000 Z
16
+ date: 2014-12-25 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activesupport
@@ -70,11 +70,6 @@ files:
70
70
  - doc_config/yard/templates/default/method_details/html/source.erb
71
71
  - doc_config/yard/templates/default/module/html/box_info.erb
72
72
  - docs.watchr
73
- - features/activemodel_integration.feature
74
- - features/rails_integration.feature
75
- - features/step_definitions/activemodel_steps.rb
76
- - features/step_definitions/rails_steps.rb
77
- - features/support/env.rb
78
73
  - gemfiles/3.0.gemfile
79
74
  - gemfiles/3.0.gemfile.lock
80
75
  - gemfiles/3.1.gemfile
@@ -91,6 +86,8 @@ files:
91
86
  - gemfiles/4.0.1.gemfile.lock
92
87
  - gemfiles/4.1.gemfile
93
88
  - gemfiles/4.1.gemfile.lock
89
+ - gemfiles/4.2.gemfile
90
+ - gemfiles/4.2.gemfile.lock
94
91
  - lib/shoulda-matchers.rb
95
92
  - lib/shoulda/matchers.rb
96
93
  - lib/shoulda/matchers/action_controller.rb
@@ -103,14 +100,13 @@ files:
103
100
  - lib/shoulda/matchers/action_controller/respond_with_matcher.rb
104
101
  - lib/shoulda/matchers/action_controller/route_matcher.rb
105
102
  - lib/shoulda/matchers/action_controller/route_params.rb
103
+ - lib/shoulda/matchers/action_controller/set_flash_matcher.rb
106
104
  - lib/shoulda/matchers/action_controller/set_session_matcher.rb
107
- - lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb
108
105
  - lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb
109
106
  - lib/shoulda/matchers/active_model.rb
110
107
  - lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb
111
108
  - lib/shoulda/matchers/active_model/allow_value_matcher.rb
112
109
  - lib/shoulda/matchers/active_model/disallow_value_matcher.rb
113
- - lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb
114
110
  - lib/shoulda/matchers/active_model/errors.rb
115
111
  - lib/shoulda/matchers/active_model/exception_message_finder.rb
116
112
  - lib/shoulda/matchers/active_model/have_secure_password_matcher.rb
@@ -126,9 +122,9 @@ files:
126
122
  - lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb
127
123
  - lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb
128
124
  - lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb
125
+ - lib/shoulda/matchers/active_model/validate_length_of_matcher.rb
129
126
  - lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb
130
127
  - lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb
131
- - lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb
132
128
  - lib/shoulda/matchers/active_model/validation_matcher.rb
133
129
  - lib/shoulda/matchers/active_model/validation_message_finder.rb
134
130
  - lib/shoulda/matchers/active_record.rb
@@ -150,6 +146,12 @@ files:
150
146
  - lib/shoulda/matchers/active_record/have_db_index_matcher.rb
151
147
  - lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
152
148
  - lib/shoulda/matchers/active_record/serialize_matcher.rb
149
+ - lib/shoulda/matchers/active_record/uniqueness.rb
150
+ - lib/shoulda/matchers/active_record/uniqueness/model.rb
151
+ - lib/shoulda/matchers/active_record/uniqueness/namespace.rb
152
+ - lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb
153
+ - lib/shoulda/matchers/active_record/uniqueness/test_models.rb
154
+ - lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb
153
155
  - lib/shoulda/matchers/assertion_error.rb
154
156
  - lib/shoulda/matchers/doublespeak.rb
155
157
  - lib/shoulda/matchers/doublespeak/double.rb
@@ -168,80 +170,114 @@ files:
168
170
  - lib/shoulda/matchers/integrations/nunit_test_case_detection.rb
169
171
  - lib/shoulda/matchers/integrations/rspec.rb
170
172
  - lib/shoulda/matchers/integrations/test_unit.rb
173
+ - lib/shoulda/matchers/matcher_context.rb
171
174
  - lib/shoulda/matchers/rails_shim.rb
175
+ - lib/shoulda/matchers/util.rb
172
176
  - lib/shoulda/matchers/version.rb
173
177
  - lib/shoulda/matchers/warn.rb
174
178
  - script/SUPPORTED_VERSIONS
175
179
  - script/install_gems_in_all_appraisals
176
180
  - script/run_all_tests
177
181
  - shoulda-matchers.gemspec
182
+ - spec/acceptance/active_model_integration_spec.rb
183
+ - spec/acceptance/independent_matchers_spec.rb
184
+ - spec/acceptance/rails_integration_spec.rb
185
+ - spec/acceptance_spec_helper.rb
178
186
  - spec/report_warnings.rb
179
- - spec/shoulda/matchers/action_controller/callback_matcher_spec.rb
180
- - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
181
- - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
182
- - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
183
- - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
184
- - spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
185
- - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
186
- - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
187
- - spec/shoulda/matchers/action_controller/route_params_spec.rb
188
- - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
189
- - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
190
- - spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
191
- - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
192
- - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
193
- - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
194
- - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
195
- - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
196
- - spec/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
197
- - spec/shoulda/matchers/active_model/helpers_spec.rb
198
- - spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
199
- - spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
200
- - spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
201
- - spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
202
- - spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
203
- - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
204
- - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
205
- - spec/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb
206
- - spec/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb
207
- - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
208
- - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
209
- - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
210
- - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
211
- - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
212
- - spec/shoulda/matchers/active_record/association_matcher_spec.rb
213
- - spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
214
- - spec/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb
215
- - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
216
- - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
217
- - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
218
- - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
219
- - spec/shoulda/matchers/doublespeak/double_collection_spec.rb
220
- - spec/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb
221
- - spec/shoulda/matchers/doublespeak/double_spec.rb
222
- - spec/shoulda/matchers/doublespeak/object_double_spec.rb
223
- - spec/shoulda/matchers/doublespeak/proxy_implementation_spec.rb
224
- - spec/shoulda/matchers/doublespeak/stub_implementation_spec.rb
225
- - spec/shoulda/matchers/doublespeak/world_spec.rb
226
- - spec/shoulda/matchers/doublespeak_spec.rb
227
- - spec/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb
228
- - spec/shoulda/matchers/independent/delegate_method_matcher_spec.rb
229
- - spec/spec_helper.rb
230
- - spec/support/active_model_versions.rb
231
- - spec/support/active_resource_builder.rb
232
- - spec/support/activemodel_helpers.rb
233
- - spec/support/capture_helpers.rb
234
- - spec/support/class_builder.rb
235
- - spec/support/controller_builder.rb
236
- - spec/support/fail_with_message_including_matcher.rb
237
- - spec/support/fail_with_message_matcher.rb
238
- - spec/support/i18n_faker.rb
239
- - spec/support/mailer_builder.rb
240
- - spec/support/model_builder.rb
241
- - spec/support/rails_versions.rb
242
- - spec/support/shared_examples/numerical_submatcher.rb
243
- - spec/support/shared_examples/numerical_type_submatcher.rb
244
- - spec/support/test_application.rb
187
+ - spec/support/acceptance/helpers.rb
188
+ - spec/support/acceptance/helpers/active_model_helpers.rb
189
+ - spec/support/acceptance/helpers/array_helpers.rb
190
+ - spec/support/acceptance/helpers/base_helpers.rb
191
+ - spec/support/acceptance/helpers/command_helpers.rb
192
+ - spec/support/acceptance/helpers/file_helpers.rb
193
+ - spec/support/acceptance/helpers/gem_helpers.rb
194
+ - spec/support/acceptance/helpers/minitest_helpers.rb
195
+ - spec/support/acceptance/helpers/pluralization_helpers.rb
196
+ - spec/support/acceptance/helpers/rails_version_helpers.rb
197
+ - spec/support/acceptance/helpers/rspec_helpers.rb
198
+ - spec/support/acceptance/helpers/ruby_version_helpers.rb
199
+ - spec/support/acceptance/helpers/step_helpers.rb
200
+ - spec/support/acceptance/matchers/have_output.rb
201
+ - spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb
202
+ - spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb
203
+ - spec/support/tests/bundle.rb
204
+ - spec/support/tests/command_runner.rb
205
+ - spec/support/tests/filesystem.rb
206
+ - spec/support/tests/version.rb
207
+ - spec/support/unit/capture.rb
208
+ - spec/support/unit/helpers/active_model_helpers.rb
209
+ - spec/support/unit/helpers/active_model_versions.rb
210
+ - spec/support/unit/helpers/active_resource_builder.rb
211
+ - spec/support/unit/helpers/allow_value_matcher_helpers.rb
212
+ - spec/support/unit/helpers/class_builder.rb
213
+ - spec/support/unit/helpers/confirmation_matcher_helpers.rb
214
+ - spec/support/unit/helpers/controller_builder.rb
215
+ - spec/support/unit/helpers/i18n_faker.rb
216
+ - spec/support/unit/helpers/mailer_builder.rb
217
+ - spec/support/unit/helpers/model_builder.rb
218
+ - spec/support/unit/helpers/rails_versions.rb
219
+ - spec/support/unit/i18n.rb
220
+ - spec/support/unit/matchers/deprecate.rb
221
+ - spec/support/unit/matchers/fail_with_message_including_matcher.rb
222
+ - spec/support/unit/matchers/fail_with_message_matcher.rb
223
+ - spec/support/unit/matchers/print_warning_including.rb
224
+ - spec/support/unit/rails_application.rb
225
+ - spec/support/unit/record_builder_with_i18n_validation_message.rb
226
+ - spec/support/unit/record_validating_confirmation_builder.rb
227
+ - spec/support/unit/record_with_different_error_attribute_builder.rb
228
+ - spec/support/unit/shared_examples/numerical_submatcher.rb
229
+ - spec/support/unit/shared_examples/numerical_type_submatcher.rb
230
+ - spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb
231
+ - spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
232
+ - spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
233
+ - spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb
234
+ - spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
235
+ - spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
236
+ - spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
237
+ - spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb
238
+ - spec/unit/shoulda/matchers/action_controller/route_params_spec.rb
239
+ - spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb
240
+ - spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb
241
+ - spec/unit/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
242
+ - spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
243
+ - spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb
244
+ - spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
245
+ - spec/unit/shoulda/matchers/active_model/exception_message_finder_spec.rb
246
+ - spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
247
+ - spec/unit/shoulda/matchers/active_model/helpers_spec.rb
248
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
249
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
250
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
251
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
252
+ - spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
253
+ - spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
254
+ - spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
255
+ - spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb
256
+ - spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb
257
+ - spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb
258
+ - spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
259
+ - spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
260
+ - spec/unit/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
261
+ - spec/unit/shoulda/matchers/active_model/validation_message_finder_spec.rb
262
+ - spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
263
+ - spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb
264
+ - spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
265
+ - spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb
266
+ - spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
267
+ - spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
268
+ - spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
269
+ - spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb
270
+ - spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb
271
+ - spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb
272
+ - spec/unit/shoulda/matchers/doublespeak/double_spec.rb
273
+ - spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb
274
+ - spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb
275
+ - spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb
276
+ - spec/unit/shoulda/matchers/doublespeak/world_spec.rb
277
+ - spec/unit/shoulda/matchers/doublespeak_spec.rb
278
+ - spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb
279
+ - spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb
280
+ - spec/unit_spec_helper.rb
245
281
  - spec/warnings_spy.rb
246
282
  - spec/warnings_spy/filesystem.rb
247
283
  - spec/warnings_spy/partitioner.rb
@@ -262,9 +298,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
262
298
  version: 1.9.2
263
299
  required_rubygems_version: !ruby/object:Gem::Requirement
264
300
  requirements:
265
- - - ">="
301
+ - - ">"
266
302
  - !ruby/object:Gem::Version
267
- version: '0'
303
+ version: 1.3.1
268
304
  requirements: []
269
305
  rubyforge_project:
270
306
  rubygems_version: 2.2.2
@@ -272,78 +308,105 @@ signing_key:
272
308
  specification_version: 4
273
309
  summary: Making tests easy on the fingers and eyes
274
310
  test_files:
275
- - features/activemodel_integration.feature
276
- - features/rails_integration.feature
277
- - features/step_definitions/activemodel_steps.rb
278
- - features/step_definitions/rails_steps.rb
279
- - features/support/env.rb
311
+ - spec/acceptance/active_model_integration_spec.rb
312
+ - spec/acceptance/independent_matchers_spec.rb
313
+ - spec/acceptance/rails_integration_spec.rb
314
+ - spec/acceptance_spec_helper.rb
280
315
  - spec/report_warnings.rb
281
- - spec/shoulda/matchers/action_controller/callback_matcher_spec.rb
282
- - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
283
- - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
284
- - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
285
- - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
286
- - spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
287
- - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
288
- - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
289
- - spec/shoulda/matchers/action_controller/route_params_spec.rb
290
- - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
291
- - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
292
- - spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
293
- - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
294
- - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
295
- - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
296
- - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
297
- - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
298
- - spec/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
299
- - spec/shoulda/matchers/active_model/helpers_spec.rb
300
- - spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
301
- - spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
302
- - spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
303
- - spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
304
- - spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
305
- - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
306
- - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
307
- - spec/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb
308
- - spec/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb
309
- - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
310
- - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
311
- - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
312
- - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
313
- - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
314
- - spec/shoulda/matchers/active_record/association_matcher_spec.rb
315
- - spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
316
- - spec/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb
317
- - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
318
- - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
319
- - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
320
- - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
321
- - spec/shoulda/matchers/doublespeak/double_collection_spec.rb
322
- - spec/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb
323
- - spec/shoulda/matchers/doublespeak/double_spec.rb
324
- - spec/shoulda/matchers/doublespeak/object_double_spec.rb
325
- - spec/shoulda/matchers/doublespeak/proxy_implementation_spec.rb
326
- - spec/shoulda/matchers/doublespeak/stub_implementation_spec.rb
327
- - spec/shoulda/matchers/doublespeak/world_spec.rb
328
- - spec/shoulda/matchers/doublespeak_spec.rb
329
- - spec/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb
330
- - spec/shoulda/matchers/independent/delegate_method_matcher_spec.rb
331
- - spec/spec_helper.rb
332
- - spec/support/active_model_versions.rb
333
- - spec/support/active_resource_builder.rb
334
- - spec/support/activemodel_helpers.rb
335
- - spec/support/capture_helpers.rb
336
- - spec/support/class_builder.rb
337
- - spec/support/controller_builder.rb
338
- - spec/support/fail_with_message_including_matcher.rb
339
- - spec/support/fail_with_message_matcher.rb
340
- - spec/support/i18n_faker.rb
341
- - spec/support/mailer_builder.rb
342
- - spec/support/model_builder.rb
343
- - spec/support/rails_versions.rb
344
- - spec/support/shared_examples/numerical_submatcher.rb
345
- - spec/support/shared_examples/numerical_type_submatcher.rb
346
- - spec/support/test_application.rb
316
+ - spec/support/acceptance/helpers.rb
317
+ - spec/support/acceptance/helpers/active_model_helpers.rb
318
+ - spec/support/acceptance/helpers/array_helpers.rb
319
+ - spec/support/acceptance/helpers/base_helpers.rb
320
+ - spec/support/acceptance/helpers/command_helpers.rb
321
+ - spec/support/acceptance/helpers/file_helpers.rb
322
+ - spec/support/acceptance/helpers/gem_helpers.rb
323
+ - spec/support/acceptance/helpers/minitest_helpers.rb
324
+ - spec/support/acceptance/helpers/pluralization_helpers.rb
325
+ - spec/support/acceptance/helpers/rails_version_helpers.rb
326
+ - spec/support/acceptance/helpers/rspec_helpers.rb
327
+ - spec/support/acceptance/helpers/ruby_version_helpers.rb
328
+ - spec/support/acceptance/helpers/step_helpers.rb
329
+ - spec/support/acceptance/matchers/have_output.rb
330
+ - spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb
331
+ - spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb
332
+ - spec/support/tests/bundle.rb
333
+ - spec/support/tests/command_runner.rb
334
+ - spec/support/tests/filesystem.rb
335
+ - spec/support/tests/version.rb
336
+ - spec/support/unit/capture.rb
337
+ - spec/support/unit/helpers/active_model_helpers.rb
338
+ - spec/support/unit/helpers/active_model_versions.rb
339
+ - spec/support/unit/helpers/active_resource_builder.rb
340
+ - spec/support/unit/helpers/allow_value_matcher_helpers.rb
341
+ - spec/support/unit/helpers/class_builder.rb
342
+ - spec/support/unit/helpers/confirmation_matcher_helpers.rb
343
+ - spec/support/unit/helpers/controller_builder.rb
344
+ - spec/support/unit/helpers/i18n_faker.rb
345
+ - spec/support/unit/helpers/mailer_builder.rb
346
+ - spec/support/unit/helpers/model_builder.rb
347
+ - spec/support/unit/helpers/rails_versions.rb
348
+ - spec/support/unit/i18n.rb
349
+ - spec/support/unit/matchers/deprecate.rb
350
+ - spec/support/unit/matchers/fail_with_message_including_matcher.rb
351
+ - spec/support/unit/matchers/fail_with_message_matcher.rb
352
+ - spec/support/unit/matchers/print_warning_including.rb
353
+ - spec/support/unit/rails_application.rb
354
+ - spec/support/unit/record_builder_with_i18n_validation_message.rb
355
+ - spec/support/unit/record_validating_confirmation_builder.rb
356
+ - spec/support/unit/record_with_different_error_attribute_builder.rb
357
+ - spec/support/unit/shared_examples/numerical_submatcher.rb
358
+ - spec/support/unit/shared_examples/numerical_type_submatcher.rb
359
+ - spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb
360
+ - spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
361
+ - spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
362
+ - spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb
363
+ - spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
364
+ - spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
365
+ - spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
366
+ - spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb
367
+ - spec/unit/shoulda/matchers/action_controller/route_params_spec.rb
368
+ - spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb
369
+ - spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb
370
+ - spec/unit/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
371
+ - spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
372
+ - spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb
373
+ - spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
374
+ - spec/unit/shoulda/matchers/active_model/exception_message_finder_spec.rb
375
+ - spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
376
+ - spec/unit/shoulda/matchers/active_model/helpers_spec.rb
377
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
378
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
379
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
380
+ - spec/unit/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
381
+ - spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
382
+ - spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
383
+ - spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
384
+ - spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb
385
+ - spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb
386
+ - spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb
387
+ - spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
388
+ - spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
389
+ - spec/unit/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
390
+ - spec/unit/shoulda/matchers/active_model/validation_message_finder_spec.rb
391
+ - spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
392
+ - spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb
393
+ - spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
394
+ - spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb
395
+ - spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
396
+ - spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
397
+ - spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
398
+ - spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb
399
+ - spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb
400
+ - spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb
401
+ - spec/unit/shoulda/matchers/doublespeak/double_spec.rb
402
+ - spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb
403
+ - spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb
404
+ - spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb
405
+ - spec/unit/shoulda/matchers/doublespeak/world_spec.rb
406
+ - spec/unit/shoulda/matchers/doublespeak_spec.rb
407
+ - spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb
408
+ - spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb
409
+ - spec/unit_spec_helper.rb
347
410
  - spec/warnings_spy.rb
348
411
  - spec/warnings_spy/filesystem.rb
349
412
  - spec/warnings_spy/partitioner.rb