Skip to content

Commit 73890bc

Browse files
committed
Merge pull request #1560 from bronson/patch-1
let request specs use integration test services
2 parents 56f7d3c + 22100fa commit 73890bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/rspec/rails/example/request_example_group.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ module RequestExampleGroup
1111
include RSpec::Rails::Matchers::RenderTemplate
1212
include ActionController::TemplateAssertions
1313

14+
begin
15+
include ActionDispatch::IntegrationTest::Behavior
16+
rescue NameError # rubocop:disable Lint/HandleExceptions
17+
# rails is too old to provide integration test helpers
18+
end
19+
1420
# Delegates to `Rails.application`.
1521
def app
1622
::Rails.application

0 commit comments

Comments
 (0)