Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
3ff6f6a5e13221b1e80eb42cced079fbb6e0f568
discourse/spec/models/api_key_scope_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
268 B
Ruby
Raw Normal View History

FIX: Missing allowed urls when displaying granualar API key scopes. Follow-up to 3791fbd9196c5a10d2723e3c46e7cf8f008caa4c
2021-12-06 10:51:47 +08:00
# frozen_string_literal: true
Add RSpec 4 compatibility (#17652) * Remove outdated option https://github.com/rspec/rspec-core/commit/04078317ba6577699d06cf4dccf014254dcde7a6 * Use the non-globally exposed RSpec syntax https://github.com/rspec/rspec-core/pull/2803 * Use the non-globally exposed RSpec syntax, cont https://github.com/rspec/rspec-core/pull/2803 * Comply to strict predicate matchers See: - https://github.com/rspec/rspec-expectations/pull/1195 - https://github.com/rspec/rspec-expectations/pull/1196 - https://github.com/rspec/rspec-expectations/pull/1277
2022-07-28 05:27:38 +03:00
RSpec.describe ApiKeyScope do
FIX: Missing allowed urls when displaying granualar API key scopes. Follow-up to 3791fbd9196c5a10d2723e3c46e7cf8f008caa4c
2021-12-06 10:51:47 +08:00
describe '.find_urls' do
it 'should return the right urls' do
expect(ApiKeyScope.find_urls(actions: ["posts#create"], methods: []))
.to contain_exactly("/posts (POST)")
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 102ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API