Skip to content

Commit e3eab0a

Browse files
adamruzickaiNecas
authored andcommitted
Fix example recording with Rails 5
1 parent 75a16bd commit e3eab0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/apipie/extractor.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class Apipie::Railtie
1616
end
1717
end
1818
app.middleware.use ::Apipie::Extractor::Recorder::Middleware
19-
ActionController::TestCase::Behavior.instance_eval do
20-
prepend Apipie::Extractor::Recorder::FunctionalTestRecording
21-
end
19+
ActionController::TestCase.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording)
2220
end
2321
end
2422

0 commit comments

Comments
 (0)