Fixed RSpec inspectable endpoint shared example to only check contract

Necessary to only look for the contract since that's all we care about at the moment. This helps when endpoints don't have models.

Milestone: patch
This commit is contained in:
Brooke Kuhlmann
2025-12-11 14:53:54 -07:00
parent 0817921ccc
commit 5cd685c992
@@ -2,6 +2,6 @@
RSpec.shared_examples "an inspectable endpoint" do |target|
it "answers contract class" do
expect(target.inspect).to include("@contract=Dry::Schema::JSON, ")
expect(target.inspect).to include("@contract=Dry::Schema::JSON")
end
end