rspec-rails 3.9.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Capybara.md +5 -54
  4. data/Changelog.md +156 -78
  5. data/README.md +8 -7
  6. data/lib/generators/rspec/channel/channel_generator.rb +12 -0
  7. data/lib/generators/rspec/{observer/templates/observer_spec.rb → channel/templates/channel_spec.rb.erb} +1 -1
  8. data/lib/generators/rspec/controller/controller_generator.rb +21 -4
  9. data/lib/generators/rspec/controller/templates/request_spec.rb +14 -0
  10. data/lib/generators/rspec/controller/templates/routing_spec.rb +13 -0
  11. data/lib/generators/rspec/feature/feature_generator.rb +2 -2
  12. data/lib/generators/rspec/{generators → generator}/generator_generator.rb +2 -2
  13. data/lib/generators/rspec/{generators → generator}/templates/generator_spec.rb +0 -0
  14. data/lib/generators/rspec/helper/helper_generator.rb +1 -1
  15. data/lib/generators/rspec/install/install_generator.rb +4 -4
  16. data/lib/generators/rspec/install/templates/spec/rails_helper.rb +17 -16
  17. data/lib/generators/rspec/integration/integration_generator.rb +3 -3
  18. data/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
  19. data/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
  20. data/lib/generators/rspec/mailer/mailer_generator.rb +2 -1
  21. data/lib/generators/rspec/model/model_generator.rb +5 -4
  22. data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
  23. data/lib/generators/rspec/request/request_generator.rb +1 -1
  24. data/lib/generators/rspec/scaffold/scaffold_generator.rb +29 -19
  25. data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +0 -36
  26. data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
  27. data/lib/generators/rspec/scaffold/templates/controller_spec.rb +10 -10
  28. data/lib/generators/rspec/scaffold/templates/edit_spec.rb +1 -1
  29. data/lib/generators/rspec/scaffold/templates/index_spec.rb +2 -2
  30. data/lib/generators/rspec/scaffold/templates/new_spec.rb +1 -1
  31. data/lib/generators/rspec/scaffold/templates/request_spec.rb +133 -0
  32. data/lib/generators/rspec/scaffold/templates/routing_spec.rb +8 -10
  33. data/lib/generators/rspec/scaffold/templates/show_spec.rb +1 -1
  34. data/lib/generators/rspec/system/system_generator.rb +1 -1
  35. data/lib/generators/rspec/view/view_generator.rb +2 -2
  36. data/lib/generators/rspec.rb +0 -6
  37. data/lib/rspec/rails/adapters.rb +11 -76
  38. data/lib/rspec/rails/configuration.rb +43 -33
  39. data/lib/rspec/rails/example/channel_example_group.rb +93 -0
  40. data/lib/rspec/rails/example/controller_example_group.rb +4 -4
  41. data/lib/rspec/rails/example/feature_example_group.rb +6 -26
  42. data/lib/rspec/rails/example/helper_example_group.rb +2 -9
  43. data/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
  44. data/lib/rspec/rails/example/mailer_example_group.rb +2 -2
  45. data/lib/rspec/rails/example/rails_example_group.rb +1 -1
  46. data/lib/rspec/rails/example/system_example_group.rb +26 -10
  47. data/lib/rspec/rails/example/view_example_group.rb +38 -27
  48. data/lib/rspec/rails/example.rb +2 -0
  49. data/lib/rspec/rails/extensions/active_record/proxy.rb +1 -9
  50. data/lib/rspec/rails/feature_check.rb +12 -29
  51. data/lib/rspec/rails/fixture_file_upload_support.rb +1 -1
  52. data/lib/rspec/rails/fixture_support.rb +37 -31
  53. data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +170 -0
  54. data/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
  55. data/lib/rspec/rails/matchers/action_cable.rb +65 -0
  56. data/lib/rspec/rails/matchers/action_mailbox.rb +64 -0
  57. data/lib/rspec/rails/matchers/active_job.rb +148 -22
  58. data/lib/rspec/rails/matchers/base_matcher.rb +5 -10
  59. data/lib/rspec/rails/matchers/have_enqueued_mail.rb +52 -28
  60. data/lib/rspec/rails/matchers/have_http_status.rb +11 -7
  61. data/lib/rspec/rails/matchers/have_rendered.rb +1 -0
  62. data/lib/rspec/rails/matchers/routing_matchers.rb +12 -12
  63. data/lib/rspec/rails/matchers.rb +10 -0
  64. data/lib/rspec/rails/tasks/rspec.rake +7 -17
  65. data/lib/rspec/rails/vendor/capybara.rb +10 -15
  66. data/lib/rspec/rails/version.rb +1 -1
  67. data/lib/rspec/rails/view_path_builder.rb +1 -1
  68. data/lib/rspec/rails/view_rendering.rb +15 -4
  69. data/lib/rspec-rails.rb +8 -9
  70. data.tar.gz.sig +0 -0
  71. metadata +46 -34
  72. metadata.gz.sig +0 -0
  73. data/lib/generators/rspec/observer/observer_generator.rb +0 -13
@@ -9,31 +9,26 @@ rescue LoadError
9
9
  end
10
10
 
11
11
  if defined?(Capybara)
12
- require 'rspec/support/comparable_version'
13
- unless RSpec::Support::ComparableVersion.new(Capybara::VERSION) >= '2.2.0'
14
- raise "You are using capybara #{Capybara::VERSION}. RSpec requires >= 2.2.0."
15
- end
16
-
17
12
  RSpec.configure do |c|
18
13
  if defined?(Capybara::DSL)
19
- c.include Capybara::DSL, :type => :feature
14
+ c.include Capybara::DSL, type: :feature
20
15
  if defined?(ActionPack) && ActionPack::VERSION::STRING >= "5.1"
21
- c.include Capybara::DSL, :type => :system
16
+ c.include Capybara::DSL, type: :system
22
17
  end
23
18
  end
24
19
 
25
20
  if defined?(Capybara::RSpecMatchers)
26
- c.include Capybara::RSpecMatchers, :type => :view
27
- c.include Capybara::RSpecMatchers, :type => :helper
28
- c.include Capybara::RSpecMatchers, :type => :mailer
29
- c.include Capybara::RSpecMatchers, :type => :controller
30
- c.include Capybara::RSpecMatchers, :type => :feature
31
- c.include Capybara::RSpecMatchers, :type => :system
21
+ c.include Capybara::RSpecMatchers, type: :view
22
+ c.include Capybara::RSpecMatchers, type: :helper
23
+ c.include Capybara::RSpecMatchers, type: :mailer
24
+ c.include Capybara::RSpecMatchers, type: :controller
25
+ c.include Capybara::RSpecMatchers, type: :feature
26
+ c.include Capybara::RSpecMatchers, type: :system
32
27
  end
33
28
 
34
29
  unless defined?(Capybara::RSpecMatchers) || defined?(Capybara::DSL)
35
- c.include Capybara, :type => :request
36
- c.include Capybara, :type => :controller
30
+ c.include Capybara, type: :request
31
+ c.include Capybara, type: :controller
37
32
  end
38
33
  end
39
34
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.9.0'
6
+ STRING = '4.0.1'
7
7
  end
8
8
  end
9
9
  end
@@ -20,7 +20,7 @@ module RSpec
20
20
  # view_path_builder.path_for({ :controller => 'posts', :action => 'delete' })
21
21
  # # => ActionController::UrlGenerationError: No route matches {:action=>"delete", :controller=>"posts"}
22
22
  def path_for(path_params)
23
- url_for(path_params.merge(:only_path => true))
23
+ url_for(path_params.merge(only_path: true))
24
24
  rescue => e
25
25
  e.message
26
26
  end
@@ -55,12 +55,23 @@ module RSpec
55
55
  "",
56
56
  template.identifier,
57
57
  EmptyTemplateHandler,
58
- :virtual_path => template.virtual_path,
59
- :format => template.formats
58
+ virtual_path: template.virtual_path,
59
+ format: template_format(template),
60
+ locals: []
60
61
  )
61
62
  end
62
63
  end
63
64
 
65
+ if ::Rails::VERSION::STRING >= '6'
66
+ def self.template_format(template)
67
+ template.format
68
+ end
69
+ else
70
+ def self.template_format(template)
71
+ template.formats
72
+ end
73
+ end
74
+
64
75
  # Delegates all methods to the submitted resolver and for all methods
65
76
  # that return a collection of `ActionView::Template` instances, return
66
77
  # templates with modified source
@@ -91,7 +102,7 @@ module RSpec
91
102
  #
92
103
  # @private
93
104
  class FileSystemResolver < ::ActionView::FileSystemResolver
94
- private
105
+ private
95
106
 
96
107
  def find_templates(*args)
97
108
  templates = super
@@ -102,7 +113,7 @@ module RSpec
102
113
 
103
114
  # @private
104
115
  class EmptyTemplateHandler
105
- def self.call(_template)
116
+ def self.call(_template, _source = nil)
106
117
  ::Rails.logger.info(" Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.")
107
118
 
108
119
  %("")
data/lib/rspec-rails.rb CHANGED
@@ -15,8 +15,7 @@ module RSpec
15
15
  SourceAnnotationExtractor::Annotation.register_directories("spec")
16
16
  end
17
17
  end
18
- # Rails-3.0.1 requires config.app_generators instead of 3.0.0's config.generators
19
- generators = config.respond_to?(:app_generators) ? config.app_generators : config.generators
18
+ generators = config.app_generators
20
19
  generators.integration_tool :rspec
21
20
  generators.test_framework :rspec
22
21
 
@@ -31,14 +30,15 @@ module RSpec
31
30
  # This is called after the environment has been loaded but before Rails
32
31
  # sets the default for the `preview_path`
33
32
  initializer "rspec_rails.action_mailer",
34
- :before => "action_mailer.set_configs" do |app|
35
- setup_preview_path(app)
36
- end
33
+ before: "action_mailer.set_configs" do |app|
34
+ setup_preview_path(app)
35
+ end
37
36
 
38
37
  private
39
38
 
40
39
  def setup_preview_path(app)
41
40
  return unless supports_action_mailer_previews?(app.config)
41
+
42
42
  options = app.config.action_mailer
43
43
  config_default_preview_path(options) if config_preview_path?(options)
44
44
  end
@@ -46,9 +46,7 @@ module RSpec
46
46
  def config_preview_path?(options)
47
47
  # We cannot use `respond_to?(:show_previews)` here as it will always
48
48
  # return `true`.
49
- if ::Rails::VERSION::STRING < '4.2'
50
- ::Rails.env.development?
51
- elsif options.show_previews.nil?
49
+ if options.show_previews.nil?
52
50
  options.show_previews = ::Rails.env.development?
53
51
  else
54
52
  options.show_previews
@@ -57,6 +55,7 @@ module RSpec
57
55
 
58
56
  def config_default_preview_path(options)
59
57
  return unless options.preview_path.blank?
58
+
60
59
  options.preview_path = "#{::Rails.root}/spec/mailers/previews"
61
60
  end
62
61
 
@@ -72,7 +71,7 @@ module RSpec
72
71
  # not respond to the method. However, we cannot use
73
72
  # `config.action_mailer.respond_to?(:preview_path)` here as it will
74
73
  # always return `true`.
75
- config.respond_to?(:action_mailer) && ::Rails::VERSION::STRING > '4.1'
74
+ config.respond_to?(:action_mailer)
76
75
  end
77
76
  end
78
77
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -44,149 +44,149 @@ cert_chain:
44
44
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
45
45
  F3MdtaDehhjC
46
46
  -----END CERTIFICATE-----
47
- date: 2019-10-08 00:00:00.000000000 Z
47
+ date: 2020-05-16 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
- name: activesupport
50
+ name: actionpack
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '3.0'
55
+ version: '4.2'
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '3.0'
62
+ version: '4.2'
63
63
  - !ruby/object:Gem::Dependency
64
- name: actionpack
64
+ name: activesupport
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.0'
69
+ version: '4.2'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '3.0'
76
+ version: '4.2'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: railties
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '3.0'
83
+ version: '4.2'
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '3.0'
90
+ version: '4.2'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec-core
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 3.9.0
97
+ version: '3.9'
98
98
  type: :runtime
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 3.9.0
104
+ version: '3.9'
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rspec-expectations
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 3.9.0
111
+ version: '3.9'
112
112
  type: :runtime
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 3.9.0
118
+ version: '3.9'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: rspec-mocks
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 3.9.0
125
+ version: '3.9'
126
126
  type: :runtime
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 3.9.0
132
+ version: '3.9'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: rspec-support
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 3.9.0
139
+ version: '3.9'
140
140
  type: :runtime
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 3.9.0
146
+ version: '3.9'
147
147
  - !ruby/object:Gem::Dependency
148
- name: cucumber
148
+ name: ammeter
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 1.3.5
153
+ version: 1.1.2
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: 1.3.5
160
+ version: 1.1.2
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: aruba
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: 0.5.4
167
+ version: 0.14.12
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - "~>"
173
173
  - !ruby/object:Gem::Version
174
- version: 0.5.4
174
+ version: 0.14.12
175
175
  - !ruby/object:Gem::Dependency
176
- name: ammeter
176
+ name: cucumber
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - "~>"
180
180
  - !ruby/object:Gem::Version
181
- version: 1.1.2
181
+ version: 1.3.5
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
- version: 1.1.2
189
- description: rspec-rails is a testing framework for Rails 3+.
188
+ version: 1.3.5
189
+ description: rspec-rails is a testing framework for Rails 5+.
190
190
  email: rspec@googlegroups.com
191
191
  executables: []
192
192
  extensions: []
@@ -199,14 +199,18 @@ files:
199
199
  - LICENSE.md
200
200
  - README.md
201
201
  - lib/generators/rspec.rb
202
+ - lib/generators/rspec/channel/channel_generator.rb
203
+ - lib/generators/rspec/channel/templates/channel_spec.rb.erb
202
204
  - lib/generators/rspec/controller/controller_generator.rb
203
205
  - lib/generators/rspec/controller/templates/controller_spec.rb
206
+ - lib/generators/rspec/controller/templates/request_spec.rb
207
+ - lib/generators/rspec/controller/templates/routing_spec.rb
204
208
  - lib/generators/rspec/controller/templates/view_spec.rb
205
209
  - lib/generators/rspec/feature/feature_generator.rb
206
210
  - lib/generators/rspec/feature/templates/feature_singular_spec.rb
207
211
  - lib/generators/rspec/feature/templates/feature_spec.rb
208
- - lib/generators/rspec/generators/generator_generator.rb
209
- - lib/generators/rspec/generators/templates/generator_spec.rb
212
+ - lib/generators/rspec/generator/generator_generator.rb
213
+ - lib/generators/rspec/generator/templates/generator_spec.rb
210
214
  - lib/generators/rspec/helper/helper_generator.rb
211
215
  - lib/generators/rspec/helper/templates/helper_spec.rb
212
216
  - lib/generators/rspec/install/install_generator.rb
@@ -215,6 +219,8 @@ files:
215
219
  - lib/generators/rspec/integration/templates/request_spec.rb
216
220
  - lib/generators/rspec/job/job_generator.rb
217
221
  - lib/generators/rspec/job/templates/job_spec.rb.erb
222
+ - lib/generators/rspec/mailbox/mailbox_generator.rb
223
+ - lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb
218
224
  - lib/generators/rspec/mailer/mailer_generator.rb
219
225
  - lib/generators/rspec/mailer/templates/fixture
220
226
  - lib/generators/rspec/mailer/templates/mailer_spec.rb
@@ -222,15 +228,15 @@ files:
222
228
  - lib/generators/rspec/model/model_generator.rb
223
229
  - lib/generators/rspec/model/templates/fixtures.yml
224
230
  - lib/generators/rspec/model/templates/model_spec.rb
225
- - lib/generators/rspec/observer/observer_generator.rb
226
- - lib/generators/rspec/observer/templates/observer_spec.rb
227
231
  - lib/generators/rspec/request/request_generator.rb
228
232
  - lib/generators/rspec/scaffold/scaffold_generator.rb
229
233
  - lib/generators/rspec/scaffold/templates/api_controller_spec.rb
234
+ - lib/generators/rspec/scaffold/templates/api_request_spec.rb
230
235
  - lib/generators/rspec/scaffold/templates/controller_spec.rb
231
236
  - lib/generators/rspec/scaffold/templates/edit_spec.rb
232
237
  - lib/generators/rspec/scaffold/templates/index_spec.rb
233
238
  - lib/generators/rspec/scaffold/templates/new_spec.rb
239
+ - lib/generators/rspec/scaffold/templates/request_spec.rb
234
240
  - lib/generators/rspec/scaffold/templates/routing_spec.rb
235
241
  - lib/generators/rspec/scaffold/templates/show_spec.rb
236
242
  - lib/generators/rspec/system/system_generator.rb
@@ -243,10 +249,12 @@ files:
243
249
  - lib/rspec/rails/adapters.rb
244
250
  - lib/rspec/rails/configuration.rb
245
251
  - lib/rspec/rails/example.rb
252
+ - lib/rspec/rails/example/channel_example_group.rb
246
253
  - lib/rspec/rails/example/controller_example_group.rb
247
254
  - lib/rspec/rails/example/feature_example_group.rb
248
255
  - lib/rspec/rails/example/helper_example_group.rb
249
256
  - lib/rspec/rails/example/job_example_group.rb
257
+ - lib/rspec/rails/example/mailbox_example_group.rb
250
258
  - lib/rspec/rails/example/mailer_example_group.rb
251
259
  - lib/rspec/rails/example/model_example_group.rb
252
260
  - lib/rspec/rails/example/rails_example_group.rb
@@ -261,6 +269,10 @@ files:
261
269
  - lib/rspec/rails/fixture_file_upload_support.rb
262
270
  - lib/rspec/rails/fixture_support.rb
263
271
  - lib/rspec/rails/matchers.rb
272
+ - lib/rspec/rails/matchers/action_cable.rb
273
+ - lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
274
+ - lib/rspec/rails/matchers/action_cable/have_streams.rb
275
+ - lib/rspec/rails/matchers/action_mailbox.rb
264
276
  - lib/rspec/rails/matchers/active_job.rb
265
277
  - lib/rspec/rails/matchers/base_matcher.rb
266
278
  - lib/rspec/rails/matchers/be_a_new.rb
@@ -284,7 +296,7 @@ licenses:
284
296
  - MIT
285
297
  metadata:
286
298
  bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
287
- changelog_uri: https://github.com/rspec/rspec-rails/blob/v3.9.0/Changelog.md
299
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.0.1/Changelog.md
288
300
  documentation_uri: https://rspec.info/documentation/
289
301
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
290
302
  source_code_uri: https://github.com/rspec/rspec-rails
@@ -297,14 +309,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
309
  requirements:
298
310
  - - ">="
299
311
  - !ruby/object:Gem::Version
300
- version: '0'
312
+ version: 2.2.0
301
313
  required_rubygems_version: !ruby/object:Gem::Requirement
302
314
  requirements:
303
315
  - - ">="
304
316
  - !ruby/object:Gem::Version
305
317
  version: '0'
306
318
  requirements: []
307
- rubygems_version: 3.0.6
319
+ rubygems_version: 3.1.3
308
320
  signing_key:
309
321
  specification_version: 4
310
322
  summary: RSpec for Rails
metadata.gz.sig CHANGED
Binary file
@@ -1,13 +0,0 @@
1
- require 'generators/rspec'
2
-
3
- module Rspec
4
- module Generators
5
- # @private
6
- class ObserverGenerator < Base
7
- def generate_observer_spec
8
- template 'observer_spec.rb',
9
- File.join('spec', 'models', class_path, "#{file_name}_observer_spec.rb")
10
- end
11
- end
12
- end
13
- end