Sha256: 1fa6321a807b575dc5ff439d6be1fefe949beaef806433888b1cecacf80d2463
Contents?: true
Size: 782 Bytes
Versions: 7
Compression:
Stored size: 782 Bytes
Contents
module Graphiti module Rails module GraphitiErrorsTesting include RescueRegistry::RailsTestHelpers def enable! DEPRECATOR.deprecation_warning("GraphitiError.enable! in tests", "This method may cause leaked behavior between tests! Wrap in Graphiti::Rails::TestHelpers#handle_request_exceptions instead.") super handle_request_exceptions(true) end def disable! DEPRECATOR.deprecation_warning("GraphitiError.disable! in tests", "This method may cause leaked behavior between tests! Wrap in Graphiti::Rails::TestHelpers#handle_request_exceptions instead. Note that exceptions are no longer caught by default during testing.") handle_request_exceptions(false) ensure super end end end end
Version data entries
7 entries across 7 versions & 1 rubygems