mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user