File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
lib/generators/rspec/integration Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
require 'generators/rspec'
2
+ require 'rspec/core/warnings'
2
3
3
4
module Rspec
4
5
module Generators
5
6
# @private
6
7
class IntegrationGenerator < Base
7
- # Add a deprecation for this class, before rspec-rails 4, to use the
8
- # `RequestGenerator` instead
9
8
class_option :request_specs ,
10
9
type : :boolean ,
11
10
default : true ,
@@ -14,6 +13,12 @@ class IntegrationGenerator < Base
14
13
def generate_request_spec
15
14
return unless options [ :request_specs ]
16
15
16
+ RSpec . warn_deprecation <<-WARNING . gsub ( /\s *\| / , ' ' )
17
+ |The integration generator is deprecated
18
+ |and will be deleted in RSpec-Rails 5.
19
+ |Please use the request generator instead.
20
+ WARNING
21
+
17
22
template 'request_spec.rb' ,
18
23
File . join ( 'spec/requests' , "#{ name . underscore . pluralize } _spec.rb" )
19
24
end
You can’t perform that action at this time.
0 commit comments