Skip to content

Commit

Permalink
Fix example recording with Rails 5
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka authored and iNecas committed Mar 5, 2018
1 parent 75a16bd commit e3eab0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/apipie/extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class Apipie::Railtie
end
end
app.middleware.use ::Apipie::Extractor::Recorder::Middleware
ActionController::TestCase::Behavior.instance_eval do
prepend Apipie::Extractor::Recorder::FunctionalTestRecording
end
ActionController::TestCase.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording)
end
end

Expand Down

0 comments on commit e3eab0a

Please sign in to comment.