lib/specdiff/webmock.rb in specdiff-0.3.0.pre.rc1 vs lib/specdiff/webmock.rb in specdiff-0.3.0.rc2
- old
+ new
@@ -1,7 +1,6 @@
-require "hashdiff"
-require "json"
+raise "webmock must be required before specdiff/webmock" unless defined?(WebMock)
module WebMock
class RequestBodyDiff
def initialize(request_signature, request_stub)
@request_signature = request_signature
@@ -37,5 +36,8 @@
request_stub.request_pattern.body_pattern &&
request_stub.request_pattern.body_pattern.pattern
end
end
end
+
+# marker for successfully loading this integration
+class Specdiff::WebmockIntegration; end # rubocop: disable Lint/EmptyClass