rspec-rails 3.7.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data/Capybara.md +5 -54
  4. data/Changelog.md +259 -70
  5. data/README.md +265 -496
  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 +4 -4
  12. data/lib/generators/rspec/generator/generator_generator.rb +24 -0
  13. data/lib/generators/rspec/generator/templates/generator_spec.rb +6 -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 +25 -12
  17. data/lib/generators/rspec/integration/integration_generator.rb +4 -4
  18. data/lib/generators/rspec/integration/templates/request_spec.rb +1 -1
  19. data/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
  20. data/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
  21. data/lib/generators/rspec/mailer/mailer_generator.rb +2 -1
  22. data/lib/generators/rspec/mailer/templates/preview.rb +1 -1
  23. data/lib/generators/rspec/model/model_generator.rb +6 -5
  24. data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
  25. data/lib/generators/rspec/request/request_generator.rb +1 -1
  26. data/lib/generators/rspec/scaffold/scaffold_generator.rb +43 -23
  27. data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +2 -38
  28. data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
  29. data/lib/generators/rspec/scaffold/templates/controller_spec.rb +17 -17
  30. data/lib/generators/rspec/scaffold/templates/edit_spec.rb +1 -1
  31. data/lib/generators/rspec/scaffold/templates/index_spec.rb +2 -2
  32. data/lib/generators/rspec/scaffold/templates/new_spec.rb +1 -1
  33. data/lib/generators/rspec/scaffold/templates/request_spec.rb +133 -0
  34. data/lib/generators/rspec/scaffold/templates/routing_spec.rb +10 -13
  35. data/lib/generators/rspec/scaffold/templates/show_spec.rb +1 -1
  36. data/lib/generators/rspec/system/system_generator.rb +26 -0
  37. data/lib/generators/rspec/system/templates/system_spec.rb +9 -0
  38. data/lib/generators/rspec/view/view_generator.rb +2 -2
  39. data/lib/generators/rspec.rb +0 -6
  40. data/lib/rspec/rails/adapters.rb +11 -76
  41. data/lib/rspec/rails/configuration.rb +47 -36
  42. data/lib/rspec/rails/example/channel_example_group.rb +93 -0
  43. data/lib/rspec/rails/example/controller_example_group.rb +4 -4
  44. data/lib/rspec/rails/example/feature_example_group.rb +6 -26
  45. data/lib/rspec/rails/example/helper_example_group.rb +2 -9
  46. data/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
  47. data/lib/rspec/rails/example/mailer_example_group.rb +1 -1
  48. data/lib/rspec/rails/example/rails_example_group.rb +1 -1
  49. data/lib/rspec/rails/example/system_example_group.rb +96 -60
  50. data/lib/rspec/rails/example/view_example_group.rb +47 -28
  51. data/lib/rspec/rails/example.rb +3 -3
  52. data/lib/rspec/rails/extensions/active_record/proxy.rb +1 -9
  53. data/lib/rspec/rails/feature_check.rb +12 -29
  54. data/lib/rspec/rails/fixture_file_upload_support.rb +40 -0
  55. data/lib/rspec/rails/fixture_support.rb +37 -31
  56. data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +170 -0
  57. data/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
  58. data/lib/rspec/rails/matchers/action_cable.rb +65 -0
  59. data/lib/rspec/rails/matchers/action_mailbox.rb +64 -0
  60. data/lib/rspec/rails/matchers/active_job.rb +180 -22
  61. data/lib/rspec/rails/matchers/base_matcher.rb +179 -0
  62. data/lib/rspec/rails/matchers/be_a_new.rb +1 -1
  63. data/lib/rspec/rails/matchers/be_new_record.rb +1 -1
  64. data/lib/rspec/rails/matchers/be_valid.rb +1 -1
  65. data/lib/rspec/rails/matchers/have_enqueued_mail.rb +198 -0
  66. data/lib/rspec/rails/matchers/have_http_status.rb +34 -13
  67. data/lib/rspec/rails/matchers/have_rendered.rb +2 -1
  68. data/lib/rspec/rails/matchers/redirect_to.rb +1 -1
  69. data/lib/rspec/rails/matchers/routing_matchers.rb +14 -14
  70. data/lib/rspec/rails/matchers.rb +11 -0
  71. data/lib/rspec/rails/tasks/rspec.rake +7 -17
  72. data/lib/rspec/rails/vendor/capybara.rb +10 -15
  73. data/lib/rspec/rails/version.rb +1 -1
  74. data/lib/rspec/rails/view_path_builder.rb +1 -1
  75. data/lib/rspec/rails/view_rendering.rb +16 -5
  76. data/lib/rspec/rails.rb +1 -0
  77. data/lib/rspec-rails.rb +13 -10
  78. data.tar.gz.sig +0 -0
  79. metadata +55 -33
  80. metadata.gz.sig +0 -0
  81. data/lib/generators/rspec/observer/observer_generator.rb +0 -13
@@ -3,19 +3,19 @@ if default = Rake.application.instance_variable_get('@tasks')['default']
3
3
  default.prerequisites.delete('test')
4
4
  end
5
5
 
6
- task :default => :spec
6
+ task default: :spec
7
7
 
8
- task :stats => "spec:statsetup"
8
+ task stats: "spec:statsetup"
9
9
 
10
10
  desc "Run all specs in spec directory (excluding plugin specs)"
11
- RSpec::Core::RakeTask.new(:spec => "spec:prepare")
11
+ RSpec::Core::RakeTask.new(spec: "spec:prepare")
12
12
 
13
13
  namespace :spec do
14
14
  types = begin
15
- dirs = Dir['./spec/**/*_spec.rb'].
16
- map { |f| f.sub(/^\.\/(spec\/\w+)\/.*/, '\\1') }.
17
- uniq.
18
- select { |f| File.directory?(f) }
15
+ dirs = Dir['./spec/**/*_spec.rb']
16
+ .map { |f| f.sub(/^\.\/(spec\/\w+)\/.*/, '\\1') }
17
+ .uniq
18
+ .select { |f| File.directory?(f) }
19
19
  Hash[dirs.map { |d| [d.split('/').last, d] }]
20
20
  end
21
21
 
@@ -35,16 +35,6 @@ namespace :spec do
35
35
  end
36
36
  end
37
37
 
38
- # RCov task only enabled for Ruby 1.8
39
- if RUBY_VERSION < '1.9'
40
- desc "Run all specs with rcov"
41
- RSpec::Core::RakeTask.new(:rcov => "spec:prepare") do |t|
42
- t.rcov = true
43
- t.pattern = "./spec/**/*_spec.rb"
44
- t.rcov_opts = '--exclude /gems/,/Library/,/usr/,lib/tasks,.bundle,config,/lib/rspec/,/lib/rspec-,spec'
45
- end
46
- end
47
-
48
38
  task :statsetup do
49
39
  require 'rails/code_statistics'
50
40
  types.each do |type, dir|
@@ -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.7.0'
6
+ STRING = '4.0.0'
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
  %("")
@@ -137,7 +148,7 @@ module RSpec
137
148
  before do
138
149
  unless render_views?
139
150
  @_original_path_set = controller.class.view_paths
140
- path_set = @_original_path_set.map { |resolver| RESOLVER_CACHE[resolver.to_s] }
151
+ path_set = @_original_path_set.map { |resolver| RESOLVER_CACHE[resolver] }
141
152
 
142
153
  controller.class.view_paths = path_set
143
154
  controller.extend(EmptyTemplates)
data/lib/rspec/rails.rb CHANGED
@@ -10,6 +10,7 @@ require 'rspec/rails/view_rendering'
10
10
  require 'rspec/rails/matchers'
11
11
  require 'rspec/rails/fixture_support'
12
12
  require 'rspec/rails/file_fixture_support'
13
+ require 'rspec/rails/fixture_file_upload_support'
13
14
  require 'rspec/rails/example'
14
15
  require 'rspec/rails/vendor/capybara'
15
16
  require 'rspec/rails/configuration'
data/lib/rspec-rails.rb CHANGED
@@ -9,10 +9,13 @@ module RSpec
9
9
  # As of Rails 5.1.0 you can register directories to work with `rake notes`
10
10
  if ::Rails::VERSION::STRING >= '5.1'
11
11
  require 'rails/source_annotation_extractor'
12
- SourceAnnotationExtractor::Annotation.register_directories("spec")
12
+ if ::Rails::VERSION::STRING >= '6.0'
13
+ ::Rails::SourceAnnotationExtractor::Annotation.register_directories("spec")
14
+ else
15
+ SourceAnnotationExtractor::Annotation.register_directories("spec")
16
+ end
13
17
  end
14
- # Rails-3.0.1 requires config.app_generators instead of 3.0.0's config.generators
15
- generators = config.respond_to?(:app_generators) ? config.app_generators : config.generators
18
+ generators = config.app_generators
16
19
  generators.integration_tool :rspec
17
20
  generators.test_framework :rspec
18
21
 
@@ -27,14 +30,15 @@ module RSpec
27
30
  # This is called after the environment has been loaded but before Rails
28
31
  # sets the default for the `preview_path`
29
32
  initializer "rspec_rails.action_mailer",
30
- :before => "action_mailer.set_configs" do |app|
31
- setup_preview_path(app)
32
- end
33
+ before: "action_mailer.set_configs" do |app|
34
+ setup_preview_path(app)
35
+ end
33
36
 
34
37
  private
35
38
 
36
39
  def setup_preview_path(app)
37
40
  return unless supports_action_mailer_previews?(app.config)
41
+
38
42
  options = app.config.action_mailer
39
43
  config_default_preview_path(options) if config_preview_path?(options)
40
44
  end
@@ -42,9 +46,7 @@ module RSpec
42
46
  def config_preview_path?(options)
43
47
  # We cannot use `respond_to?(:show_previews)` here as it will always
44
48
  # return `true`.
45
- if ::Rails::VERSION::STRING < '4.2'
46
- ::Rails.env.development?
47
- elsif options.show_previews.nil?
49
+ if options.show_previews.nil?
48
50
  options.show_previews = ::Rails.env.development?
49
51
  else
50
52
  options.show_previews
@@ -53,6 +55,7 @@ module RSpec
53
55
 
54
56
  def config_default_preview_path(options)
55
57
  return unless options.preview_path.blank?
58
+
56
59
  options.preview_path = "#{::Rails.root}/spec/mailers/previews"
57
60
  end
58
61
 
@@ -68,7 +71,7 @@ module RSpec
68
71
  # not respond to the method. However, we cannot use
69
72
  # `config.action_mailer.respond_to?(:preview_path)` here as it will
70
73
  # always return `true`.
71
- config.respond_to?(:action_mailer) && ::Rails::VERSION::STRING > '4.1'
74
+ config.respond_to?(:action_mailer)
72
75
  end
73
76
  end
74
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.7.0
4
+ version: 4.0.0
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: 2017-10-17 00:00:00.000000000 Z
47
+ date: 2020-03-24 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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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,12 +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
212
+ - lib/generators/rspec/generator/generator_generator.rb
213
+ - lib/generators/rspec/generator/templates/generator_spec.rb
208
214
  - lib/generators/rspec/helper/helper_generator.rb
209
215
  - lib/generators/rspec/helper/templates/helper_spec.rb
210
216
  - lib/generators/rspec/install/install_generator.rb
@@ -213,6 +219,8 @@ files:
213
219
  - lib/generators/rspec/integration/templates/request_spec.rb
214
220
  - lib/generators/rspec/job/job_generator.rb
215
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
216
224
  - lib/generators/rspec/mailer/mailer_generator.rb
217
225
  - lib/generators/rspec/mailer/templates/fixture
218
226
  - lib/generators/rspec/mailer/templates/mailer_spec.rb
@@ -220,17 +228,19 @@ files:
220
228
  - lib/generators/rspec/model/model_generator.rb
221
229
  - lib/generators/rspec/model/templates/fixtures.yml
222
230
  - lib/generators/rspec/model/templates/model_spec.rb
223
- - lib/generators/rspec/observer/observer_generator.rb
224
- - lib/generators/rspec/observer/templates/observer_spec.rb
225
231
  - lib/generators/rspec/request/request_generator.rb
226
232
  - lib/generators/rspec/scaffold/scaffold_generator.rb
227
233
  - lib/generators/rspec/scaffold/templates/api_controller_spec.rb
234
+ - lib/generators/rspec/scaffold/templates/api_request_spec.rb
228
235
  - lib/generators/rspec/scaffold/templates/controller_spec.rb
229
236
  - lib/generators/rspec/scaffold/templates/edit_spec.rb
230
237
  - lib/generators/rspec/scaffold/templates/index_spec.rb
231
238
  - lib/generators/rspec/scaffold/templates/new_spec.rb
239
+ - lib/generators/rspec/scaffold/templates/request_spec.rb
232
240
  - lib/generators/rspec/scaffold/templates/routing_spec.rb
233
241
  - lib/generators/rspec/scaffold/templates/show_spec.rb
242
+ - lib/generators/rspec/system/system_generator.rb
243
+ - lib/generators/rspec/system/templates/system_spec.rb
234
244
  - lib/generators/rspec/view/templates/view_spec.rb
235
245
  - lib/generators/rspec/view/view_generator.rb
236
246
  - lib/rspec-rails.rb
@@ -239,10 +249,12 @@ files:
239
249
  - lib/rspec/rails/adapters.rb
240
250
  - lib/rspec/rails/configuration.rb
241
251
  - lib/rspec/rails/example.rb
252
+ - lib/rspec/rails/example/channel_example_group.rb
242
253
  - lib/rspec/rails/example/controller_example_group.rb
243
254
  - lib/rspec/rails/example/feature_example_group.rb
244
255
  - lib/rspec/rails/example/helper_example_group.rb
245
256
  - lib/rspec/rails/example/job_example_group.rb
257
+ - lib/rspec/rails/example/mailbox_example_group.rb
246
258
  - lib/rspec/rails/example/mailer_example_group.rb
247
259
  - lib/rspec/rails/example/model_example_group.rb
248
260
  - lib/rspec/rails/example/rails_example_group.rb
@@ -254,12 +266,19 @@ files:
254
266
  - lib/rspec/rails/extensions/active_record/proxy.rb
255
267
  - lib/rspec/rails/feature_check.rb
256
268
  - lib/rspec/rails/file_fixture_support.rb
269
+ - lib/rspec/rails/fixture_file_upload_support.rb
257
270
  - lib/rspec/rails/fixture_support.rb
258
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
259
276
  - lib/rspec/rails/matchers/active_job.rb
277
+ - lib/rspec/rails/matchers/base_matcher.rb
260
278
  - lib/rspec/rails/matchers/be_a_new.rb
261
279
  - lib/rspec/rails/matchers/be_new_record.rb
262
280
  - lib/rspec/rails/matchers/be_valid.rb
281
+ - lib/rspec/rails/matchers/have_enqueued_mail.rb
263
282
  - lib/rspec/rails/matchers/have_http_status.rb
264
283
  - lib/rspec/rails/matchers/have_rendered.rb
265
284
  - lib/rspec/rails/matchers/redirect_to.rb
@@ -275,7 +294,12 @@ files:
275
294
  homepage: https://github.com/rspec/rspec-rails
276
295
  licenses:
277
296
  - MIT
278
- metadata: {}
297
+ metadata:
298
+ bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
299
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.0.0/Changelog.md
300
+ documentation_uri: https://rspec.info/documentation/
301
+ mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
302
+ source_code_uri: https://github.com/rspec/rspec-rails
279
303
  post_install_message:
280
304
  rdoc_options:
281
305
  - "--charset=UTF-8"
@@ -292,10 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
316
  - !ruby/object:Gem::Version
293
317
  version: '0'
294
318
  requirements: []
295
- rubyforge_project:
296
- rubygems_version: 2.6.14
319
+ rubygems_version: 3.1.2
297
320
  signing_key:
298
321
  specification_version: 4
299
322
  summary: RSpec for Rails
300
323
  test_files: []
301
- has_rdoc:
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