Sha256: cdf575daf4b5a6fa3a10d56b98705e2ba39fd5a519dd75d006dd2f62c754a0f0
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true RSpec.describe KeycloakRack::AuthorizeResource do let(:session) { FactoryBot.create :session } let(:instance) { session.authorize_resource } it "works with an authorized widget role" do expect(instance.call("widgets", "bar")).to be_a_success end it "fails with an unauthorized widget role" do expect(instance.call("widgets", "baz")).to be_a_failure end it "fails with an unknown resource" do expect(instance.call("unknown", "bar")).to be_a_failure end end
Version data entries
3 entries across 3 versions & 1 rubygems