FIX: Logs api scope not working (#25215)

This commit is contained in:
Blake Erickson
2024-01-10 19:30:10 -07:00
committed by GitHub
parent c569107872
commit 6ebe61ecec
3 changed files with 31 additions and 0 deletions

View File

@ -7,5 +7,12 @@ RSpec.describe ApiKeyScope do
"/posts (POST)",
)
end
it "should return logster urls" do
expect(ApiKeyScope.find_urls(actions: [Logster::Web], methods: [])).to contain_exactly(
"/logs/messages.json (POST)",
"/logs/show/:id.json (GET)",
)
end
end
end