shoulda-matchers 4.0.0.rc1 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +72 -40
  4. data/lib/shoulda/matchers/action_controller.rb +2 -0
  5. data/lib/shoulda/matchers/active_model.rb +2 -3
  6. data/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +1 -0
  7. data/lib/shoulda/matchers/active_record.rb +2 -0
  8. data/lib/shoulda/matchers/active_record/association_matcher.rb +34 -0
  9. data/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb +27 -4
  10. data/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb +27 -4
  11. data/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb +1 -1
  12. data/lib/shoulda/matchers/independent.rb +2 -1
  13. data/lib/shoulda/matchers/rails_shim.rb +5 -9
  14. data/lib/shoulda/matchers/version.rb +1 -1
  15. data/lib/shoulda/matchers/warn.rb +1 -0
  16. data/shoulda-matchers.gemspec +11 -3
  17. metadata +13 -340
  18. data/.gitignore +0 -12
  19. data/.hound.yml +0 -3
  20. data/.hound/ruby.yml +0 -1062
  21. data/.python-version +0 -1
  22. data/.rubocop.yml +0 -15
  23. data/.travis.yml +0 -21
  24. data/.yardopts +0 -10
  25. data/Appraisals +0 -105
  26. data/CONTRIBUTING.md +0 -172
  27. data/Gemfile +0 -15
  28. data/Gemfile.lock +0 -59
  29. data/MAINTAINING.md +0 -250
  30. data/NEWS.md +0 -1235
  31. data/Rakefile +0 -46
  32. data/bin/setup +0 -190
  33. data/custom_plan.rb +0 -104
  34. data/doc_config/gh-pages/index.html.erb +0 -9
  35. data/doc_config/yard/setup.rb +0 -22
  36. data/doc_config/yard/templates/default/fulldoc/html/css/bootstrap.css +0 -5967
  37. data/doc_config/yard/templates/default/fulldoc/html/css/full_list.css +0 -12
  38. data/doc_config/yard/templates/default/fulldoc/html/css/global.css +0 -66
  39. data/doc_config/yard/templates/default/fulldoc/html/css/solarized.css +0 -69
  40. data/doc_config/yard/templates/default/fulldoc/html/css/style.css +0 -312
  41. data/doc_config/yard/templates/default/fulldoc/html/full_list.erb +0 -26
  42. data/doc_config/yard/templates/default/fulldoc/html/full_list_class.erb +0 -1
  43. data/doc_config/yard/templates/default/fulldoc/html/full_list_method.erb +0 -8
  44. data/doc_config/yard/templates/default/fulldoc/html/js/app.js +0 -281
  45. data/doc_config/yard/templates/default/fulldoc/html/js/full_list.js +0 -1
  46. data/doc_config/yard/templates/default/fulldoc/html/js/jquery.stickyheaders.js +0 -289
  47. data/doc_config/yard/templates/default/fulldoc/html/js/underscore.min.js +0 -6
  48. data/doc_config/yard/templates/default/fulldoc/html/setup.rb +0 -35
  49. data/doc_config/yard/templates/default/layout/html/breadcrumb.erb +0 -14
  50. data/doc_config/yard/templates/default/layout/html/fonts.erb +0 -1
  51. data/doc_config/yard/templates/default/layout/html/footer.erb +0 -6
  52. data/doc_config/yard/templates/default/layout/html/layout.erb +0 -23
  53. data/doc_config/yard/templates/default/layout/html/search.erb +0 -13
  54. data/doc_config/yard/templates/default/layout/html/setup.rb +0 -40
  55. data/doc_config/yard/templates/default/method_details/html/source.erb +0 -10
  56. data/doc_config/yard/templates/default/module/html/box_info.erb +0 -31
  57. data/gemfiles/4.2.gemfile +0 -39
  58. data/gemfiles/4.2.gemfile.lock +0 -246
  59. data/gemfiles/5.0.gemfile +0 -37
  60. data/gemfiles/5.0.gemfile.lock +0 -238
  61. data/gemfiles/5.1.gemfile +0 -38
  62. data/gemfiles/5.1.gemfile.lock +0 -254
  63. data/gemfiles/5.2.gemfile +0 -40
  64. data/gemfiles/5.2.gemfile.lock +0 -273
  65. data/script/install_gems_in_all_appraisals +0 -16
  66. data/script/run_all_tests +0 -16
  67. data/script/supported_ruby_versions +0 -7
  68. data/script/update_gem_in_all_appraisals +0 -17
  69. data/script/update_gems_in_all_appraisals +0 -16
  70. data/spec/acceptance/active_model_integration_spec.rb +0 -23
  71. data/spec/acceptance/independent_matchers_spec.rb +0 -125
  72. data/spec/acceptance/multiple_libraries_integration_spec.rb +0 -55
  73. data/spec/acceptance/rails_integration_spec.rb +0 -156
  74. data/spec/acceptance_spec_helper.rb +0 -23
  75. data/spec/doublespeak_spec_helper.rb +0 -2
  76. data/spec/report_warnings.rb +0 -7
  77. data/spec/spec_helper.rb +0 -20
  78. data/spec/support/acceptance/adds_shoulda_matchers_to_project.rb +0 -133
  79. data/spec/support/acceptance/helpers.rb +0 -33
  80. data/spec/support/acceptance/helpers/active_model_helpers.rb +0 -11
  81. data/spec/support/acceptance/helpers/array_helpers.rb +0 -13
  82. data/spec/support/acceptance/helpers/base_helpers.rb +0 -19
  83. data/spec/support/acceptance/helpers/command_helpers.rb +0 -68
  84. data/spec/support/acceptance/helpers/file_helpers.rb +0 -19
  85. data/spec/support/acceptance/helpers/gem_helpers.rb +0 -31
  86. data/spec/support/acceptance/helpers/minitest_helpers.rb +0 -11
  87. data/spec/support/acceptance/helpers/n_unit_helpers.rb +0 -25
  88. data/spec/support/acceptance/helpers/pluralization_helpers.rb +0 -13
  89. data/spec/support/acceptance/helpers/rails_migration_helpers.rb +0 -21
  90. data/spec/support/acceptance/helpers/rails_version_helpers.rb +0 -11
  91. data/spec/support/acceptance/helpers/rspec_helpers.rb +0 -24
  92. data/spec/support/acceptance/helpers/ruby_version_helpers.rb +0 -9
  93. data/spec/support/acceptance/helpers/step_helpers.rb +0 -127
  94. data/spec/support/acceptance/matchers/have_output.rb +0 -31
  95. data/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb +0 -55
  96. data/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb +0 -103
  97. data/spec/support/tests/bundle.rb +0 -94
  98. data/spec/support/tests/command_runner.rb +0 -230
  99. data/spec/support/tests/current_bundle.rb +0 -55
  100. data/spec/support/tests/database.rb +0 -28
  101. data/spec/support/tests/database_adapters/postgresql.rb +0 -25
  102. data/spec/support/tests/database_adapters/sqlite3.rb +0 -26
  103. data/spec/support/tests/database_configuration.rb +0 -33
  104. data/spec/support/tests/database_configuration_registry.rb +0 -28
  105. data/spec/support/tests/filesystem.rb +0 -100
  106. data/spec/support/tests/version.rb +0 -45
  107. data/spec/support/unit/active_record/create_table.rb +0 -54
  108. data/spec/support/unit/attribute.rb +0 -45
  109. data/spec/support/unit/capture.rb +0 -46
  110. data/spec/support/unit/change_value.rb +0 -111
  111. data/spec/support/unit/create_model_arguments/basic.rb +0 -135
  112. data/spec/support/unit/create_model_arguments/has_many.rb +0 -15
  113. data/spec/support/unit/create_model_arguments/uniqueness_matcher.rb +0 -74
  114. data/spec/support/unit/helpers/action_pack_versions.rb +0 -22
  115. data/spec/support/unit/helpers/active_model_helpers.rb +0 -27
  116. data/spec/support/unit/helpers/active_model_versions.rb +0 -32
  117. data/spec/support/unit/helpers/active_record_versions.rb +0 -44
  118. data/spec/support/unit/helpers/active_resource_builder.rb +0 -27
  119. data/spec/support/unit/helpers/allow_value_matcher_helpers.rb +0 -15
  120. data/spec/support/unit/helpers/class_builder.rb +0 -90
  121. data/spec/support/unit/helpers/column_type_helpers.rb +0 -26
  122. data/spec/support/unit/helpers/confirmation_matcher_helpers.rb +0 -17
  123. data/spec/support/unit/helpers/controller_builder.rb +0 -63
  124. data/spec/support/unit/helpers/database_helpers.rb +0 -20
  125. data/spec/support/unit/helpers/i18n_faker.rb +0 -15
  126. data/spec/support/unit/helpers/mailer_builder.rb +0 -12
  127. data/spec/support/unit/helpers/message_helpers.rb +0 -19
  128. data/spec/support/unit/helpers/model_builder.rb +0 -114
  129. data/spec/support/unit/helpers/rails_versions.rb +0 -42
  130. data/spec/support/unit/helpers/validation_matcher_scenario_helpers.rb +0 -44
  131. data/spec/support/unit/i18n.rb +0 -7
  132. data/spec/support/unit/load_environment.rb +0 -12
  133. data/spec/support/unit/matchers/deprecate.rb +0 -60
  134. data/spec/support/unit/matchers/fail_with_message_including_matcher.rb +0 -51
  135. data/spec/support/unit/matchers/fail_with_message_matcher.rb +0 -64
  136. data/spec/support/unit/matchers/print_warning_including.rb +0 -67
  137. data/spec/support/unit/model_creation_strategies/active_model.rb +0 -111
  138. data/spec/support/unit/model_creation_strategies/active_record.rb +0 -77
  139. data/spec/support/unit/model_creators.rb +0 -19
  140. data/spec/support/unit/model_creators/active_model.rb +0 -39
  141. data/spec/support/unit/model_creators/active_record.rb +0 -42
  142. data/spec/support/unit/model_creators/active_record/has_and_belongs_to_many.rb +0 -95
  143. data/spec/support/unit/model_creators/active_record/has_many.rb +0 -67
  144. data/spec/support/unit/model_creators/active_record/uniqueness_matcher.rb +0 -42
  145. data/spec/support/unit/model_creators/basic.rb +0 -102
  146. data/spec/support/unit/rails_application.rb +0 -151
  147. data/spec/support/unit/record_builder_with_i18n_validation_message.rb +0 -69
  148. data/spec/support/unit/record_validating_confirmation_builder.rb +0 -54
  149. data/spec/support/unit/record_with_different_error_attribute_builder.rb +0 -92
  150. data/spec/support/unit/shared_examples/ignoring_interference_by_writer.rb +0 -79
  151. data/spec/support/unit/shared_examples/numerical_submatcher.rb +0 -17
  152. data/spec/support/unit/shared_examples/set_session_or_flash.rb +0 -360
  153. data/spec/support/unit/validation_matcher_scenario.rb +0 -60
  154. data/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb +0 -82
  155. data/spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +0 -28
  156. data/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb +0 -629
  157. data/spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +0 -42
  158. data/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb +0 -76
  159. data/spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +0 -62
  160. data/spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb +0 -90
  161. data/spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +0 -31
  162. data/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb +0 -330
  163. data/spec/unit/shoulda/matchers/action_controller/route_params_spec.rb +0 -30
  164. data/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb +0 -67
  165. data/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb +0 -17
  166. data/spec/unit/shoulda/matchers/action_controller/set_session_or_flash_matcher_spec.rb +0 -562
  167. data/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +0 -117
  168. data/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb +0 -829
  169. data/spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +0 -86
  170. data/spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb +0 -20
  171. data/spec/unit/shoulda/matchers/active_model/helpers_spec.rb +0 -162
  172. data/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb +0 -290
  173. data/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +0 -109
  174. data/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +0 -172
  175. data/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb +0 -264
  176. data/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb +0 -1049
  177. data/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb +0 -335
  178. data/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +0 -1865
  179. data/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +0 -406
  180. data/spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +0 -107
  181. data/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb +0 -1672
  182. data/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb +0 -251
  183. data/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb +0 -690
  184. data/spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +0 -111
  185. data/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +0 -85
  186. data/spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +0 -41
  187. data/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb +0 -169
  188. data/spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb +0 -86
  189. data/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb +0 -1682
  190. data/spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb +0 -190
  191. data/spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb +0 -21
  192. data/spec/unit/shoulda/matchers/doublespeak/double_spec.rb +0 -271
  193. data/spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb +0 -77
  194. data/spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb +0 -72
  195. data/spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb +0 -101
  196. data/spec/unit/shoulda/matchers/doublespeak/world_spec.rb +0 -78
  197. data/spec/unit/shoulda/matchers/doublespeak_spec.rb +0 -27
  198. data/spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb +0 -43
  199. data/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb +0 -650
  200. data/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb +0 -406
  201. data/spec/unit/shoulda/matchers/util/word_wrap_spec.rb +0 -252
  202. data/spec/unit_spec_helper.rb +0 -54
  203. data/spec/warnings_spy.rb +0 -64
  204. data/spec/warnings_spy/filesystem.rb +0 -45
  205. data/spec/warnings_spy/partitioner.rb +0 -36
  206. data/spec/warnings_spy/reader.rb +0 -53
  207. data/spec/warnings_spy/reporter.rb +0 -88
  208. data/tasks/documentation.rb +0 -199
  209. data/zeus.json +0 -11
@@ -1,40 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "2.2.0"
6
- gem "bundler", "~> 1.1"
7
- gem "pry"
8
- gem "pry-byebug"
9
- gem "rake", "12.3.0"
10
- gem "rspec", "~> 3.6"
11
- gem "zeus", require: false
12
- gem "yard"
13
- gem "redcarpet"
14
- gem "pygments.rb"
15
- gem "fssm"
16
- gem "activerecord-jdbc-adapter", platform: :jruby
17
- gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
18
- gem "jdbc-sqlite3", platform: :jruby
19
- gem "jruby-openssl", platform: :jruby
20
- gem "therubyrhino", platform: :jruby
21
- gem "sqlite3", platform: :ruby
22
- gem "pg", platform: :ruby
23
- gem "spring"
24
- gem "spring-commands-rspec"
25
- gem "minitest-reporters"
26
- gem "rspec-rails", "~> 3.6"
27
- gem "shoulda-context", "~> 1.2.0"
28
- gem "rails", "~> 5.2.1"
29
- gem "rails-controller-testing", ">= 1.0.1"
30
- gem "puma", "~> 3.11"
31
- gem "bootsnap", ">= 1.1.0", require: false
32
- gem "sass-rails", "~> 5.0"
33
- gem "turbolinks", "~> 5"
34
- gem "jbuilder", "~> 2.5"
35
- gem "bcrypt", "~> 3.1.7"
36
- gem "capybara", "~> 3.1.1"
37
- gem "selenium-webdriver"
38
- gem "chromedriver-helper"
39
- gem "listen", ">= 3.0.5", "< 3.2"
40
- gem "spring-watcher-listen", "~> 2.0.0"
@@ -1,273 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- actioncable (5.2.1)
5
- actionpack (= 5.2.1)
6
- nio4r (~> 2.0)
7
- websocket-driver (>= 0.6.1)
8
- actionmailer (5.2.1)
9
- actionpack (= 5.2.1)
10
- actionview (= 5.2.1)
11
- activejob (= 5.2.1)
12
- mail (~> 2.5, >= 2.5.4)
13
- rails-dom-testing (~> 2.0)
14
- actionpack (5.2.1)
15
- actionview (= 5.2.1)
16
- activesupport (= 5.2.1)
17
- rack (~> 2.0)
18
- rack-test (>= 0.6.3)
19
- rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
- actionview (5.2.1)
22
- activesupport (= 5.2.1)
23
- builder (~> 3.1)
24
- erubi (~> 1.4)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
27
- activejob (5.2.1)
28
- activesupport (= 5.2.1)
29
- globalid (>= 0.3.6)
30
- activemodel (5.2.1)
31
- activesupport (= 5.2.1)
32
- activerecord (5.2.1)
33
- activemodel (= 5.2.1)
34
- activesupport (= 5.2.1)
35
- arel (>= 9.0)
36
- activestorage (5.2.1)
37
- actionpack (= 5.2.1)
38
- activerecord (= 5.2.1)
39
- marcel (~> 0.3.1)
40
- activesupport (5.2.1)
41
- concurrent-ruby (~> 1.0, >= 1.0.2)
42
- i18n (>= 0.7, < 2)
43
- minitest (~> 5.1)
44
- tzinfo (~> 1.1)
45
- addressable (2.5.2)
46
- public_suffix (>= 2.0.2, < 4.0)
47
- ansi (1.5.0)
48
- appraisal (2.2.0)
49
- bundler
50
- rake
51
- thor (>= 0.14.0)
52
- archive-zip (0.11.0)
53
- io-like (~> 0.3.0)
54
- arel (9.0.0)
55
- bcrypt (3.1.12)
56
- bootsnap (1.3.1)
57
- msgpack (~> 1.0)
58
- builder (3.2.3)
59
- byebug (10.0.2)
60
- capybara (3.1.1)
61
- addressable
62
- mini_mime (>= 0.1.3)
63
- nokogiri (~> 1.8)
64
- rack (>= 1.6.0)
65
- rack-test (>= 0.6.3)
66
- xpath (~> 3.0)
67
- childprocess (0.9.0)
68
- ffi (~> 1.0, >= 1.0.11)
69
- chromedriver-helper (1.2.0)
70
- archive-zip (~> 0.10)
71
- nokogiri (~> 1.8)
72
- coderay (1.1.2)
73
- concurrent-ruby (1.0.5)
74
- crass (1.0.4)
75
- diff-lcs (1.3)
76
- erubi (1.7.1)
77
- ffi (1.9.25)
78
- fssm (0.2.10)
79
- globalid (0.4.1)
80
- activesupport (>= 4.2.0)
81
- i18n (1.1.0)
82
- concurrent-ruby (~> 1.0)
83
- io-like (0.3.0)
84
- jbuilder (2.7.0)
85
- activesupport (>= 4.2.0)
86
- multi_json (>= 1.2)
87
- listen (3.1.5)
88
- rb-fsevent (~> 0.9, >= 0.9.4)
89
- rb-inotify (~> 0.9, >= 0.9.7)
90
- ruby_dep (~> 1.2)
91
- loofah (2.2.2)
92
- crass (~> 1.0.2)
93
- nokogiri (>= 1.5.9)
94
- mail (2.7.0)
95
- mini_mime (>= 0.1.1)
96
- marcel (0.3.2)
97
- mimemagic (~> 0.3.2)
98
- method_source (0.9.0)
99
- mimemagic (0.3.2)
100
- mini_mime (1.0.1)
101
- mini_portile2 (2.3.0)
102
- minitest (5.11.3)
103
- minitest-reporters (1.3.4)
104
- ansi
105
- builder
106
- minitest (>= 5.0)
107
- ruby-progressbar
108
- msgpack (1.2.4)
109
- multi_json (1.13.1)
110
- nio4r (2.3.1)
111
- nokogiri (1.8.4)
112
- mini_portile2 (~> 2.3.0)
113
- pg (1.1.2)
114
- pry (0.11.3)
115
- coderay (~> 1.1.0)
116
- method_source (~> 0.9.0)
117
- pry-byebug (3.6.0)
118
- byebug (~> 10.0)
119
- pry (~> 0.10)
120
- public_suffix (3.0.3)
121
- puma (3.12.0)
122
- pygments.rb (1.2.1)
123
- multi_json (>= 1.0.0)
124
- rack (2.0.5)
125
- rack-test (1.1.0)
126
- rack (>= 1.0, < 3)
127
- rails (5.2.1)
128
- actioncable (= 5.2.1)
129
- actionmailer (= 5.2.1)
130
- actionpack (= 5.2.1)
131
- actionview (= 5.2.1)
132
- activejob (= 5.2.1)
133
- activemodel (= 5.2.1)
134
- activerecord (= 5.2.1)
135
- activestorage (= 5.2.1)
136
- activesupport (= 5.2.1)
137
- bundler (>= 1.3.0)
138
- railties (= 5.2.1)
139
- sprockets-rails (>= 2.0.0)
140
- rails-controller-testing (1.0.2)
141
- actionpack (~> 5.x, >= 5.0.1)
142
- actionview (~> 5.x, >= 5.0.1)
143
- activesupport (~> 5.x)
144
- rails-dom-testing (2.0.3)
145
- activesupport (>= 4.2.0)
146
- nokogiri (>= 1.6)
147
- rails-html-sanitizer (1.0.4)
148
- loofah (~> 2.2, >= 2.2.2)
149
- railties (5.2.1)
150
- actionpack (= 5.2.1)
151
- activesupport (= 5.2.1)
152
- method_source
153
- rake (>= 0.8.7)
154
- thor (>= 0.19.0, < 2.0)
155
- rake (12.3.0)
156
- rb-fsevent (0.10.3)
157
- rb-inotify (0.9.10)
158
- ffi (>= 0.5.0, < 2)
159
- redcarpet (3.4.0)
160
- rspec (3.8.0)
161
- rspec-core (~> 3.8.0)
162
- rspec-expectations (~> 3.8.0)
163
- rspec-mocks (~> 3.8.0)
164
- rspec-core (3.8.0)
165
- rspec-support (~> 3.8.0)
166
- rspec-expectations (3.8.1)
167
- diff-lcs (>= 1.2.0, < 2.0)
168
- rspec-support (~> 3.8.0)
169
- rspec-mocks (3.8.0)
170
- diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.8.0)
172
- rspec-rails (3.8.0)
173
- actionpack (>= 3.0)
174
- activesupport (>= 3.0)
175
- railties (>= 3.0)
176
- rspec-core (~> 3.8.0)
177
- rspec-expectations (~> 3.8.0)
178
- rspec-mocks (~> 3.8.0)
179
- rspec-support (~> 3.8.0)
180
- rspec-support (3.8.0)
181
- ruby-progressbar (1.10.0)
182
- ruby_dep (1.5.0)
183
- rubyzip (1.2.2)
184
- sass (3.5.7)
185
- sass-listen (~> 4.0.0)
186
- sass-listen (4.0.0)
187
- rb-fsevent (~> 0.9, >= 0.9.4)
188
- rb-inotify (~> 0.9, >= 0.9.7)
189
- sass-rails (5.0.7)
190
- railties (>= 4.0.0, < 6)
191
- sass (~> 3.1)
192
- sprockets (>= 2.8, < 4.0)
193
- sprockets-rails (>= 2.0, < 4.0)
194
- tilt (>= 1.1, < 3)
195
- selenium-webdriver (3.14.0)
196
- childprocess (~> 0.5)
197
- rubyzip (~> 1.2)
198
- shoulda-context (1.2.2)
199
- spring (2.0.2)
200
- activesupport (>= 4.2)
201
- spring-commands-rspec (1.0.4)
202
- spring (>= 0.9.1)
203
- spring-watcher-listen (2.0.1)
204
- listen (>= 2.7, < 4.0)
205
- spring (>= 1.2, < 3.0)
206
- sprockets (3.7.2)
207
- concurrent-ruby (~> 1.0)
208
- rack (> 1, < 3)
209
- sprockets-rails (3.2.1)
210
- actionpack (>= 4.0)
211
- activesupport (>= 4.0)
212
- sprockets (>= 3.0.0)
213
- sqlite3 (1.3.13)
214
- thor (0.20.0)
215
- thread_safe (0.3.6)
216
- tilt (2.0.8)
217
- turbolinks (5.2.0)
218
- turbolinks-source (~> 5.2)
219
- turbolinks-source (5.2.0)
220
- tzinfo (1.2.5)
221
- thread_safe (~> 0.1)
222
- websocket-driver (0.7.0)
223
- websocket-extensions (>= 0.1.0)
224
- websocket-extensions (0.1.3)
225
- xpath (3.1.0)
226
- nokogiri (~> 1.8)
227
- yard (0.9.16)
228
- zeus (0.15.14)
229
- method_source (>= 0.6.7)
230
-
231
- PLATFORMS
232
- ruby
233
-
234
- DEPENDENCIES
235
- activerecord-jdbc-adapter
236
- activerecord-jdbcsqlite3-adapter
237
- appraisal (= 2.2.0)
238
- bcrypt (~> 3.1.7)
239
- bootsnap (>= 1.1.0)
240
- bundler (~> 1.1)
241
- capybara (~> 3.1.1)
242
- chromedriver-helper
243
- fssm
244
- jbuilder (~> 2.5)
245
- jdbc-sqlite3
246
- jruby-openssl
247
- listen (>= 3.0.5, < 3.2)
248
- minitest-reporters
249
- pg
250
- pry
251
- pry-byebug
252
- puma (~> 3.11)
253
- pygments.rb
254
- rails (~> 5.2.1)
255
- rails-controller-testing (>= 1.0.1)
256
- rake (= 12.3.0)
257
- redcarpet
258
- rspec (~> 3.6)
259
- rspec-rails (~> 3.6)
260
- sass-rails (~> 5.0)
261
- selenium-webdriver
262
- shoulda-context (~> 1.2.0)
263
- spring
264
- spring-commands-rspec
265
- spring-watcher-listen (~> 2.0.0)
266
- sqlite3
267
- therubyrhino
268
- turbolinks (~> 5)
269
- yard
270
- zeus
271
-
272
- BUNDLED WITH
273
- 1.16.1
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
-
5
- SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
6
-
7
- install-gems-for-version() {
8
- local version="$1"
9
- (export RBENV_VERSION=$version; bundle && bundle exec appraisal install)
10
- }
11
-
12
- for version in $SUPPORTED_VERSIONS; do
13
- echo
14
- echo "*** Installing gems for $version ***"
15
- install-gems-for-version $version
16
- done
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
-
5
- SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
6
-
7
- run-tests-for-version() {
8
- local version="$1"
9
- (export RBENV_VERSION=$version; bundle exec rake)
10
- }
11
-
12
- for version in $SUPPORTED_VERSIONS; do
13
- echo
14
- echo "*** Running tests for $version ***"
15
- run-tests-for-version $version
16
- done
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'yaml'
4
-
5
- travis_config_path = File.expand_path('../../.travis.yml', __FILE__)
6
- travis_config = YAML.load_file(travis_config_path)
7
- puts travis_config.fetch('rvm').join(' ')
@@ -1,17 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
-
5
- SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
6
- gem="$1"
7
-
8
- update-gem-for-version() {
9
- local version="$1"
10
- (export RBENV_VERSION=$version; bundle update "$gem"; bundle exec appraisal update "$gem")
11
- }
12
-
13
- for version in $SUPPORTED_VERSIONS; do
14
- echo
15
- echo "*** Updating $gem for $version ***"
16
- update-gem-for-version $version
17
- done
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
-
5
- SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
6
-
7
- update-gems-for-version() {
8
- local version="$1"
9
- (export RBENV_VERSION=$version; bundle update "${@:2}"; bundle exec appraisal update "${@:2}")
10
- }
11
-
12
- for version in $SUPPORTED_VERSIONS; do
13
- echo
14
- echo "*** Updating gems for $version ***"
15
- update-gems-for-version "$version" "$@"
16
- done
@@ -1,23 +0,0 @@
1
- require 'acceptance_spec_helper'
2
-
3
- describe 'shoulda-matchers integrates with an ActiveModel project' do
4
- specify 'and loads without errors' do
5
- create_active_model_project
6
-
7
- add_shoulda_matchers_to_project(
8
- test_frameworks: [:rspec],
9
- libraries: [:active_model]
10
- )
11
-
12
- write_file 'load_dependencies.rb', <<-FILE
13
- require 'active_model'
14
- require 'shoulda-matchers'
15
-
16
- puts ActiveModel::VERSION::STRING
17
- puts "Loaded all dependencies without errors"
18
- FILE
19
-
20
- result = run_command_within_bundle('ruby load_dependencies.rb')
21
- expect(result).to have_output('Loaded all dependencies without errors')
22
- end
23
- end
@@ -1,125 +0,0 @@
1
- require 'acceptance_spec_helper'
2
-
3
- describe 'shoulda-matchers has independent matchers, specifically delegate_method' do
4
- specify 'and integrates with a Ruby application that uses the default test framework' do
5
- create_generic_bundler_project
6
-
7
- updating_bundle do
8
- add_minitest_to_project
9
- add_shoulda_context_to_project(manually: true)
10
- add_shoulda_matchers_to_project(
11
- test_frameworks: [default_test_framework],
12
- manually: true
13
- )
14
- end
15
-
16
- write_file 'lib/post_office.rb', <<-FILE
17
- class PostOffice
18
- end
19
- FILE
20
-
21
- write_file 'lib/courier.rb', <<-FILE
22
- require 'forwardable'
23
-
24
- class Courier
25
- extend Forwardable
26
-
27
- def_delegators :post_office, :deliver
28
-
29
- attr_reader :post_office
30
-
31
- def initialize(post_office)
32
- @post_office = post_office
33
- end
34
- end
35
- FILE
36
-
37
- write_n_unit_test 'test/courier_test.rb' do |test_case_superclass|
38
- <<-FILE
39
- require 'test_helper'
40
- require 'courier'
41
- require 'post_office'
42
-
43
- class CourierTest < #{test_case_superclass}
44
- subject { Courier.new(post_office) }
45
-
46
- should delegate_method(:deliver).to(:post_office)
47
-
48
- def post_office
49
- PostOffice.new
50
- end
51
- end
52
- FILE
53
- end
54
-
55
- result = run_n_unit_tests('test/courier_test.rb')
56
-
57
- expect(result).to indicate_number_of_tests_was_run(1)
58
- expect(result).to have_output(
59
- 'Courier should delegate #deliver to the #post_office object'
60
- )
61
- end
62
-
63
- specify 'and integrates with a Ruby application that uses RSpec' do
64
- create_generic_bundler_project
65
-
66
- updating_bundle do
67
- add_rspec_to_project
68
- add_shoulda_matchers_to_project(
69
- manually: true,
70
- with_configuration: false
71
- )
72
- write_file 'spec/spec_helper.rb', <<-FILE
73
- require 'shoulda/matchers/independent'
74
-
75
- RSpec.configure do |config|
76
- config.include(Shoulda::Matchers::Independent)
77
- end
78
- FILE
79
- end
80
-
81
- write_file 'lib/post_office.rb', <<-FILE
82
- class PostOffice
83
- end
84
- FILE
85
-
86
- write_file 'lib/courier.rb', <<-FILE
87
- require 'forwardable'
88
-
89
- class Courier
90
- extend Forwardable
91
-
92
- def_delegators :post_office, :deliver
93
-
94
- attr_reader :post_office
95
-
96
- def initialize(post_office)
97
- @post_office = post_office
98
- end
99
- end
100
- FILE
101
-
102
- write_file 'spec/courier_spec.rb', <<-FILE
103
- require 'spec_helper'
104
- require 'courier'
105
- require 'post_office'
106
-
107
- describe Courier do
108
- subject { Courier.new(post_office) }
109
-
110
- it { should delegate_method(:deliver).to(:post_office) }
111
-
112
- def post_office
113
- PostOffice.new
114
- end
115
- end
116
- FILE
117
-
118
- result = run_rspec_tests('spec/courier_spec.rb')
119
-
120
- expect(result).to indicate_number_of_tests_was_run(1)
121
- expect(result).to have_output(
122
- /Courier\s+should delegate #deliver to the #post_office object/
123
- )
124
- end
125
- end