We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a20df1 commit 87d6bc4Copy full SHA for 87d6bc4
lib/rspec/rails/example/request_example_group.rb
@@ -1,5 +1,12 @@
1
module RSpec
2
module Rails
3
+ module IntegrationHelperWarnings
4
+ extend ActiveSupport::Concern
5
+ [:assert_select, :url_for, :url_options].each do |name|
6
+ define_method(name) { |*args| raise "you must upgrade Rails to call #{name}" }
7
+ end
8
9
+
10
# @api public
11
# Container class for request spec functionality.
12
module RequestExampleGroup
@@ -11,6 +18,12 @@ module RequestExampleGroup
18
include RSpec::Rails::Matchers::RenderTemplate
19
include ActionController::TemplateAssertions
13
20
21
+ begin
22
+ include ActionDispatch::IntegrationTest::Behavior
23
+ rescue NameError
24
+ include IntegrationHelperWarnings
25
26
14
27
# Delegates to `Rails.application`.
15
28
def app
16
29
::Rails.application
0 commit comments