mcmire-shoulda-matchers 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.travis.yml +32 -0
  4. data/.yardopts +7 -0
  5. data/Appraisals +45 -0
  6. data/CONTRIBUTING.md +41 -0
  7. data/Gemfile +31 -0
  8. data/Gemfile.lock +166 -0
  9. data/MIT-LICENSE +22 -0
  10. data/NEWS.md +299 -0
  11. data/README.md +163 -0
  12. data/Rakefile +116 -0
  13. data/doc_config/gh-pages/index.html.erb +9 -0
  14. data/doc_config/yard/setup.rb +22 -0
  15. data/doc_config/yard/templates/default/fulldoc/html/css/bootstrap.css +5967 -0
  16. data/doc_config/yard/templates/default/fulldoc/html/css/full_list.css +12 -0
  17. data/doc_config/yard/templates/default/fulldoc/html/css/global.css +45 -0
  18. data/doc_config/yard/templates/default/fulldoc/html/css/solarized.css +69 -0
  19. data/doc_config/yard/templates/default/fulldoc/html/css/style.css +283 -0
  20. data/doc_config/yard/templates/default/fulldoc/html/full_list.erb +32 -0
  21. data/doc_config/yard/templates/default/fulldoc/html/full_list_class.erb +1 -0
  22. data/doc_config/yard/templates/default/fulldoc/html/full_list_method.erb +8 -0
  23. data/doc_config/yard/templates/default/fulldoc/html/js/app.js +300 -0
  24. data/doc_config/yard/templates/default/fulldoc/html/js/full_list.js +1 -0
  25. data/doc_config/yard/templates/default/fulldoc/html/js/jquery.stickyheaders.js +289 -0
  26. data/doc_config/yard/templates/default/fulldoc/html/js/underscore.min.js +6 -0
  27. data/doc_config/yard/templates/default/fulldoc/html/setup.rb +8 -0
  28. data/doc_config/yard/templates/default/layout/html/breadcrumb.erb +14 -0
  29. data/doc_config/yard/templates/default/layout/html/fonts.erb +1 -0
  30. data/doc_config/yard/templates/default/layout/html/layout.erb +23 -0
  31. data/doc_config/yard/templates/default/layout/html/search.erb +13 -0
  32. data/doc_config/yard/templates/default/layout/html/setup.rb +8 -0
  33. data/doc_config/yard/templates/default/method_details/html/source.erb +10 -0
  34. data/doc_config/yard/templates/default/module/html/box_info.erb +31 -0
  35. data/features/rails_integration.feature +113 -0
  36. data/features/step_definitions/rails_steps.rb +162 -0
  37. data/features/support/env.rb +5 -0
  38. data/gemfiles/3.0.gemfile +24 -0
  39. data/gemfiles/3.0.gemfile.lock +150 -0
  40. data/gemfiles/3.1.gemfile +27 -0
  41. data/gemfiles/3.1.gemfile.lock +173 -0
  42. data/gemfiles/3.2.gemfile +27 -0
  43. data/gemfiles/3.2.gemfile.lock +171 -0
  44. data/gemfiles/4.0.0.gemfile +28 -0
  45. data/gemfiles/4.0.0.gemfile.lock +172 -0
  46. data/gemfiles/4.0.1.gemfile +28 -0
  47. data/gemfiles/4.0.1.gemfile.lock +172 -0
  48. data/lib/shoulda-matchers.rb +1 -0
  49. data/lib/shoulda/matchers.rb +11 -0
  50. data/lib/shoulda/matchers/action_controller.rb +17 -0
  51. data/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +64 -0
  52. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +97 -0
  53. data/lib/shoulda/matchers/action_controller/render_template_matcher.rb +81 -0
  54. data/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +117 -0
  55. data/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb +114 -0
  56. data/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +154 -0
  57. data/lib/shoulda/matchers/action_controller/route_matcher.rb +116 -0
  58. data/lib/shoulda/matchers/action_controller/route_params.rb +48 -0
  59. data/lib/shoulda/matchers/action_controller/set_session_matcher.rb +164 -0
  60. data/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +296 -0
  61. data/lib/shoulda/matchers/active_model.rb +30 -0
  62. data/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +167 -0
  63. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +314 -0
  64. data/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +46 -0
  65. data/lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb +160 -0
  66. data/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +417 -0
  67. data/lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb +337 -0
  68. data/lib/shoulda/matchers/active_model/errors.rb +10 -0
  69. data/lib/shoulda/matchers/active_model/exception_message_finder.rb +58 -0
  70. data/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb +92 -0
  71. data/lib/shoulda/matchers/active_model/helpers.rb +46 -0
  72. data/lib/shoulda/matchers/active_model/numericality_matchers.rb +9 -0
  73. data/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb +75 -0
  74. data/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb +27 -0
  75. data/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb +41 -0
  76. data/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb +27 -0
  77. data/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb +26 -0
  78. data/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb +112 -0
  79. data/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb +77 -0
  80. data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +121 -0
  81. data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +380 -0
  82. data/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +89 -0
  83. data/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +372 -0
  84. data/lib/shoulda/matchers/active_model/validation_matcher.rb +97 -0
  85. data/lib/shoulda/matchers/active_model/validation_message_finder.rb +69 -0
  86. data/lib/shoulda/matchers/active_record.rb +22 -0
  87. data/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb +204 -0
  88. data/lib/shoulda/matchers/active_record/association_matcher.rb +901 -0
  89. data/lib/shoulda/matchers/active_record/association_matchers.rb +9 -0
  90. data/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb +41 -0
  91. data/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb +41 -0
  92. data/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb +81 -0
  93. data/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb +65 -0
  94. data/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb +94 -0
  95. data/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb +41 -0
  96. data/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb +41 -0
  97. data/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb +63 -0
  98. data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +261 -0
  99. data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +149 -0
  100. data/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +72 -0
  101. data/lib/shoulda/matchers/active_record/serialize_matcher.rb +181 -0
  102. data/lib/shoulda/matchers/assertion_error.rb +19 -0
  103. data/lib/shoulda/matchers/error.rb +6 -0
  104. data/lib/shoulda/matchers/integrations/rspec.rb +20 -0
  105. data/lib/shoulda/matchers/integrations/test_unit.rb +30 -0
  106. data/lib/shoulda/matchers/rails_shim.rb +50 -0
  107. data/lib/shoulda/matchers/version.rb +6 -0
  108. data/lib/shoulda/matchers/warn.rb +8 -0
  109. data/shoulda-matchers.gemspec +23 -0
  110. data/spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +22 -0
  111. data/spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +42 -0
  112. data/spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb +78 -0
  113. data/spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +63 -0
  114. data/spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb +63 -0
  115. data/spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +31 -0
  116. data/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +70 -0
  117. data/spec/shoulda/matchers/action_controller/route_params_spec.rb +30 -0
  118. data/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +51 -0
  119. data/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +153 -0
  120. data/spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +111 -0
  121. data/spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb +170 -0
  122. data/spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +81 -0
  123. data/spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb +95 -0
  124. data/spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb +320 -0
  125. data/spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb +166 -0
  126. data/spec/shoulda/matchers/active_model/exception_message_finder_spec.rb +111 -0
  127. data/spec/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb +20 -0
  128. data/spec/shoulda/matchers/active_model/helpers_spec.rb +158 -0
  129. data/spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb +169 -0
  130. data/spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb +59 -0
  131. data/spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb +59 -0
  132. data/spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb +57 -0
  133. data/spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb +139 -0
  134. data/spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +41 -0
  135. data/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +47 -0
  136. data/spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +331 -0
  137. data/spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +180 -0
  138. data/spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +398 -0
  139. data/spec/shoulda/matchers/active_model/validation_message_finder_spec.rb +127 -0
  140. data/spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +107 -0
  141. data/spec/shoulda/matchers/active_record/association_matcher_spec.rb +860 -0
  142. data/spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb +247 -0
  143. data/spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +111 -0
  144. data/spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +78 -0
  145. data/spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +41 -0
  146. data/spec/shoulda/matchers/active_record/serialize_matcher_spec.rb +86 -0
  147. data/spec/spec_helper.rb +26 -0
  148. data/spec/support/active_model_versions.rb +13 -0
  149. data/spec/support/active_resource_builder.rb +29 -0
  150. data/spec/support/activemodel_helpers.rb +19 -0
  151. data/spec/support/capture_helpers.rb +19 -0
  152. data/spec/support/class_builder.rb +42 -0
  153. data/spec/support/controller_builder.rb +74 -0
  154. data/spec/support/fail_with_message_including_matcher.rb +33 -0
  155. data/spec/support/fail_with_message_matcher.rb +32 -0
  156. data/spec/support/i18n_faker.rb +10 -0
  157. data/spec/support/mailer_builder.rb +10 -0
  158. data/spec/support/model_builder.rb +81 -0
  159. data/spec/support/rails_versions.rb +18 -0
  160. data/spec/support/shared_examples/numerical_submatcher.rb +19 -0
  161. data/spec/support/shared_examples/numerical_type_submatcher.rb +17 -0
  162. data/spec/support/test_application.rb +120 -0
  163. data/yard.watchr +5 -0
  164. metadata +281 -0
@@ -0,0 +1,18 @@
1
+ module RailsVersions
2
+ def rails_version
3
+ Gem::Version.new(Rails::VERSION::STRING)
4
+ end
5
+
6
+ def rails_3_x?
7
+ Gem::Requirement.new('~> 3.0').satisfied_by?(rails_version)
8
+ end
9
+
10
+ def rails_4_x?
11
+ Gem::Requirement.new('~> 4.0').satisfied_by?(rails_version)
12
+ end
13
+ end
14
+
15
+ RSpec.configure do |config|
16
+ config.include(RailsVersions)
17
+ config.extend(RailsVersions)
18
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ shared_examples 'a numerical submatcher' do
4
+ it 'implements the with_message method' do
5
+ expect(subject).to respond_to(:with_message).with(1).arguments
6
+ end
7
+
8
+ it 'implements the matches? method' do
9
+ expect(subject).to respond_to(:matches?).with(1).arguments
10
+ end
11
+
12
+ it 'implements the failure_message method' do
13
+ expect(subject).to respond_to(:failure_message).with(0).arguments
14
+ end
15
+
16
+ it 'implements the failure_message_when_negated method' do
17
+ expect(subject).to respond_to(:failure_message_when_negated).with(0).arguments
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ shared_examples 'a numerical type submatcher' do
4
+ it 'implements the allowed_type method' do
5
+ expect(subject).to respond_to(:allowed_type).with(0).arguments
6
+ expect { subject.allowed_type }.not_to raise_error
7
+ end
8
+
9
+ it 'implements the diff_to_compare' do
10
+ expect(subject).to respond_to(:diff_to_compare).with(0).arguments
11
+ expect { subject.diff_to_compare }.not_to raise_error
12
+ end
13
+
14
+ it 'returns itself when given a message' do
15
+ expect(subject.with_message('some message')).to eq subject
16
+ end
17
+ end
@@ -0,0 +1,120 @@
1
+ require 'fileutils'
2
+
3
+ class TestApplication
4
+ ROOT_DIR = File.expand_path('../../../tmp/aruba/testapp', __FILE__)
5
+
6
+ def create
7
+ clean
8
+ generate
9
+ within_app { install_gems }
10
+ end
11
+
12
+ def load
13
+ load_environment
14
+ run_migrations
15
+ end
16
+
17
+ def gemfile_path
18
+ File.join(ROOT_DIR, 'Gemfile')
19
+ end
20
+
21
+ def environment_file_path
22
+ File.join(ROOT_DIR, 'config/environment')
23
+ end
24
+
25
+ def temp_views_dir_path
26
+ File.join(ROOT_DIR, 'tmp/views')
27
+ end
28
+
29
+ def create_temp_view(path, contents)
30
+ full_path = temp_view_path_for(path)
31
+ FileUtils.mkdir_p(File.dirname(full_path))
32
+ File.open(full_path, 'w') { |file| file.write(contents) }
33
+ end
34
+
35
+ def delete_temp_views
36
+ FileUtils.rm_rf(temp_views_dir_path)
37
+ end
38
+
39
+ def draw_routes(&block)
40
+ Rails.application.routes.draw(&block)
41
+ Rails.application.routes
42
+ end
43
+
44
+ private
45
+
46
+ def migrations_dir_path
47
+ File.join(ROOT_DIR, 'db/migrate')
48
+ end
49
+
50
+ def temp_view_path_for(path)
51
+ File.join(temp_views_dir_path, path)
52
+ end
53
+
54
+ def clean
55
+ FileUtils.rm_rf(ROOT_DIR)
56
+ end
57
+
58
+ def generate
59
+ rails_new
60
+ fix_available_locales_warning
61
+ end
62
+
63
+ def rails_new
64
+ `rails new #{ROOT_DIR} --skip-bundle`
65
+ end
66
+
67
+ def fix_available_locales_warning
68
+ # See here for more on this:
69
+ # http://stackoverflow.com/questions/20361428/rails-i18n-validation-deprecation-warning
70
+
71
+ filename = File.join(ROOT_DIR, 'config/application.rb')
72
+
73
+ lines = File.read(filename).split("\n")
74
+ lines.insert(-3, <<EOT)
75
+ if I18n.respond_to?(:enforce_available_locales=)
76
+ I18n.enforce_available_locales = false
77
+ end
78
+ EOT
79
+
80
+ File.open(filename, 'w') do |f|
81
+ f.write(lines.join("\n"))
82
+ end
83
+ end
84
+
85
+ def load_environment
86
+ require environment_file_path
87
+ end
88
+
89
+ def run_migrations
90
+ ActiveRecord::Migration.verbose = false
91
+ ActiveRecord::Migrator.migrate(migrations_dir_path)
92
+ end
93
+
94
+ def install_gems
95
+ retrying('bundle install') do |command|
96
+ Bundler.with_clean_env { `#{command}` }
97
+ end
98
+ end
99
+
100
+ def within_app(&block)
101
+ Dir.chdir(ROOT_DIR, &block)
102
+ end
103
+
104
+ def retrying(command, &runner)
105
+ runner ||= -> { `#{command}` }
106
+
107
+ retry_count = 0
108
+ loop do
109
+ output = runner.call("#{command} 2>&1")
110
+ if $? == 0
111
+ break
112
+ else
113
+ retry_count += 1
114
+ if retry_count == 3
115
+ raise "Command '#{command}' failed:\n#{output}"
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,5 @@
1
+ watch('README.md') { system('bundle exec yard doc') }
2
+ watch('yard_config/.*') { system('bundle exec yard doc') }
3
+ watch('lib/.*\.rb') { system('bundle exec yard doc') }
4
+
5
+ # vi: ft=ruby
metadata ADDED
@@ -0,0 +1,281 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mcmire-shoulda-matchers
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Tammer Saleh
8
+ - Joe Ferris
9
+ - Ryan McGeary
10
+ - Dan Croak
11
+ - Matt Jankowski
12
+ - Stafford Brunk
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+ date: 2014-03-26 00:00:00.000000000 Z
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: activesupport
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - '>='
23
+ - !ruby/object:Gem::Version
24
+ version: 3.0.0
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - '>='
30
+ - !ruby/object:Gem::Version
31
+ version: 3.0.0
32
+ description: Making tests easy on the fingers and eyes
33
+ email: support@thoughtbot.com
34
+ executables: []
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - .gitignore
39
+ - .travis.yml
40
+ - .yardopts
41
+ - Appraisals
42
+ - CONTRIBUTING.md
43
+ - Gemfile
44
+ - Gemfile.lock
45
+ - MIT-LICENSE
46
+ - NEWS.md
47
+ - README.md
48
+ - Rakefile
49
+ - doc_config/gh-pages/index.html.erb
50
+ - doc_config/yard/setup.rb
51
+ - doc_config/yard/templates/default/fulldoc/html/css/bootstrap.css
52
+ - doc_config/yard/templates/default/fulldoc/html/css/full_list.css
53
+ - doc_config/yard/templates/default/fulldoc/html/css/global.css
54
+ - doc_config/yard/templates/default/fulldoc/html/css/solarized.css
55
+ - doc_config/yard/templates/default/fulldoc/html/css/style.css
56
+ - doc_config/yard/templates/default/fulldoc/html/full_list.erb
57
+ - doc_config/yard/templates/default/fulldoc/html/full_list_class.erb
58
+ - doc_config/yard/templates/default/fulldoc/html/full_list_method.erb
59
+ - doc_config/yard/templates/default/fulldoc/html/js/app.js
60
+ - doc_config/yard/templates/default/fulldoc/html/js/full_list.js
61
+ - doc_config/yard/templates/default/fulldoc/html/js/jquery.stickyheaders.js
62
+ - doc_config/yard/templates/default/fulldoc/html/js/underscore.min.js
63
+ - doc_config/yard/templates/default/fulldoc/html/setup.rb
64
+ - doc_config/yard/templates/default/layout/html/breadcrumb.erb
65
+ - doc_config/yard/templates/default/layout/html/fonts.erb
66
+ - doc_config/yard/templates/default/layout/html/layout.erb
67
+ - doc_config/yard/templates/default/layout/html/search.erb
68
+ - doc_config/yard/templates/default/layout/html/setup.rb
69
+ - doc_config/yard/templates/default/method_details/html/source.erb
70
+ - doc_config/yard/templates/default/module/html/box_info.erb
71
+ - features/rails_integration.feature
72
+ - features/step_definitions/rails_steps.rb
73
+ - features/support/env.rb
74
+ - gemfiles/3.0.gemfile
75
+ - gemfiles/3.0.gemfile.lock
76
+ - gemfiles/3.1.gemfile
77
+ - gemfiles/3.1.gemfile.lock
78
+ - gemfiles/3.2.gemfile
79
+ - gemfiles/3.2.gemfile.lock
80
+ - gemfiles/4.0.0.gemfile
81
+ - gemfiles/4.0.0.gemfile.lock
82
+ - gemfiles/4.0.1.gemfile
83
+ - gemfiles/4.0.1.gemfile.lock
84
+ - lib/shoulda-matchers.rb
85
+ - lib/shoulda/matchers.rb
86
+ - lib/shoulda/matchers/action_controller.rb
87
+ - lib/shoulda/matchers/action_controller/filter_param_matcher.rb
88
+ - lib/shoulda/matchers/action_controller/redirect_to_matcher.rb
89
+ - lib/shoulda/matchers/action_controller/render_template_matcher.rb
90
+ - lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb
91
+ - lib/shoulda/matchers/action_controller/rescue_from_matcher.rb
92
+ - lib/shoulda/matchers/action_controller/respond_with_matcher.rb
93
+ - lib/shoulda/matchers/action_controller/route_matcher.rb
94
+ - lib/shoulda/matchers/action_controller/route_params.rb
95
+ - lib/shoulda/matchers/action_controller/set_session_matcher.rb
96
+ - lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb
97
+ - lib/shoulda/matchers/active_model.rb
98
+ - lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb
99
+ - lib/shoulda/matchers/active_model/allow_value_matcher.rb
100
+ - lib/shoulda/matchers/active_model/disallow_value_matcher.rb
101
+ - lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb
102
+ - lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb
103
+ - lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb
104
+ - lib/shoulda/matchers/active_model/errors.rb
105
+ - lib/shoulda/matchers/active_model/exception_message_finder.rb
106
+ - lib/shoulda/matchers/active_model/have_secure_password_matcher.rb
107
+ - lib/shoulda/matchers/active_model/helpers.rb
108
+ - lib/shoulda/matchers/active_model/numericality_matchers.rb
109
+ - lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb
110
+ - lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb
111
+ - lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb
112
+ - lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb
113
+ - lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb
114
+ - lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb
115
+ - lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb
116
+ - lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb
117
+ - lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb
118
+ - lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb
119
+ - lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb
120
+ - lib/shoulda/matchers/active_model/validation_matcher.rb
121
+ - lib/shoulda/matchers/active_model/validation_message_finder.rb
122
+ - lib/shoulda/matchers/active_record.rb
123
+ - lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb
124
+ - lib/shoulda/matchers/active_record/association_matcher.rb
125
+ - lib/shoulda/matchers/active_record/association_matchers.rb
126
+ - lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb
127
+ - lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb
128
+ - lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb
129
+ - lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb
130
+ - lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb
131
+ - lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb
132
+ - lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb
133
+ - lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb
134
+ - lib/shoulda/matchers/active_record/have_db_column_matcher.rb
135
+ - lib/shoulda/matchers/active_record/have_db_index_matcher.rb
136
+ - lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
137
+ - lib/shoulda/matchers/active_record/serialize_matcher.rb
138
+ - lib/shoulda/matchers/assertion_error.rb
139
+ - lib/shoulda/matchers/error.rb
140
+ - lib/shoulda/matchers/integrations/rspec.rb
141
+ - lib/shoulda/matchers/integrations/test_unit.rb
142
+ - lib/shoulda/matchers/rails_shim.rb
143
+ - lib/shoulda/matchers/version.rb
144
+ - lib/shoulda/matchers/warn.rb
145
+ - shoulda-matchers.gemspec
146
+ - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
147
+ - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
148
+ - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
149
+ - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
150
+ - spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
151
+ - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
152
+ - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
153
+ - spec/shoulda/matchers/action_controller/route_params_spec.rb
154
+ - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
155
+ - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
156
+ - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
157
+ - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
158
+ - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
159
+ - spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb
160
+ - spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb
161
+ - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
162
+ - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
163
+ - spec/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
164
+ - spec/shoulda/matchers/active_model/helpers_spec.rb
165
+ - spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
166
+ - spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
167
+ - spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
168
+ - spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
169
+ - spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
170
+ - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
171
+ - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
172
+ - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
173
+ - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
174
+ - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
175
+ - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
176
+ - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
177
+ - spec/shoulda/matchers/active_record/association_matcher_spec.rb
178
+ - spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
179
+ - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
180
+ - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
181
+ - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
182
+ - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
183
+ - spec/spec_helper.rb
184
+ - spec/support/active_model_versions.rb
185
+ - spec/support/active_resource_builder.rb
186
+ - spec/support/activemodel_helpers.rb
187
+ - spec/support/capture_helpers.rb
188
+ - spec/support/class_builder.rb
189
+ - spec/support/controller_builder.rb
190
+ - spec/support/fail_with_message_including_matcher.rb
191
+ - spec/support/fail_with_message_matcher.rb
192
+ - spec/support/i18n_faker.rb
193
+ - spec/support/mailer_builder.rb
194
+ - spec/support/model_builder.rb
195
+ - spec/support/rails_versions.rb
196
+ - spec/support/shared_examples/numerical_submatcher.rb
197
+ - spec/support/shared_examples/numerical_type_submatcher.rb
198
+ - spec/support/test_application.rb
199
+ - yard.watchr
200
+ homepage: http://thoughtbot.com/community/
201
+ licenses:
202
+ - MIT
203
+ metadata: {}
204
+ post_install_message:
205
+ rdoc_options: []
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - '>='
211
+ - !ruby/object:Gem::Version
212
+ version: 1.9.2
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - '>='
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ requirements: []
219
+ rubyforge_project:
220
+ rubygems_version: 2.2.2
221
+ signing_key:
222
+ specification_version: 4
223
+ summary: Making tests easy on the fingers and eyes
224
+ test_files:
225
+ - features/rails_integration.feature
226
+ - features/step_definitions/rails_steps.rb
227
+ - features/support/env.rb
228
+ - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
229
+ - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
230
+ - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
231
+ - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
232
+ - spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb
233
+ - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
234
+ - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
235
+ - spec/shoulda/matchers/action_controller/route_params_spec.rb
236
+ - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
237
+ - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
238
+ - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
239
+ - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
240
+ - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
241
+ - spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb
242
+ - spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb
243
+ - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
244
+ - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
245
+ - spec/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb
246
+ - spec/shoulda/matchers/active_model/helpers_spec.rb
247
+ - spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb
248
+ - spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb
249
+ - spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb
250
+ - spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb
251
+ - spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
252
+ - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
253
+ - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
254
+ - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
255
+ - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
256
+ - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
257
+ - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
258
+ - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
259
+ - spec/shoulda/matchers/active_record/association_matcher_spec.rb
260
+ - spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb
261
+ - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
262
+ - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
263
+ - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
264
+ - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
265
+ - spec/spec_helper.rb
266
+ - spec/support/active_model_versions.rb
267
+ - spec/support/active_resource_builder.rb
268
+ - spec/support/activemodel_helpers.rb
269
+ - spec/support/capture_helpers.rb
270
+ - spec/support/class_builder.rb
271
+ - spec/support/controller_builder.rb
272
+ - spec/support/fail_with_message_including_matcher.rb
273
+ - spec/support/fail_with_message_matcher.rb
274
+ - spec/support/i18n_faker.rb
275
+ - spec/support/mailer_builder.rb
276
+ - spec/support/model_builder.rb
277
+ - spec/support/rails_versions.rb
278
+ - spec/support/shared_examples/numerical_submatcher.rb
279
+ - spec/support/shared_examples/numerical_type_submatcher.rb
280
+ - spec/support/test_application.rb
281
+ has_rdoc: