Sha256: 8ce69442bb4191423db34a1ff7103cafbf5e6581640a906bdcac6dc0237faf3d
Contents?: true
Size: 671 Bytes
Versions: 8
Compression:
Stored size: 671 Bytes
Contents
RSpec.describe "RSpec ACL matchers", acl_spec: true do let(:example_certificate) { x509_certificate_hash(ou: "ponycopter") } let(:another_certificate) { x509_certificate_hash(ou: "derpderp") } subject do Rails::Auth::ACL.from_yaml( fixture_path("example_acl.yml").read, matchers: { allow_x509_subject: Rails::Auth::X509::Matcher, allow_claims: ClaimsMatcher } ) end describe "/baz/quux" do it { is_expected.to permit get_request(credentials: example_certificate) } it { is_expected.not_to permit get_request(credentials: another_certificate) } it { is_expected.not_to permit get_request } end end
Version data entries
8 entries across 8 versions & 1 rubygems