Sha256: 275a0e3978f9f012d7c5adee4e80676c80af333815dec82409c0cdbf50bee4d4
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
require "spec_helper" describe Auth0::Api::V2::Blacklists do before :all do dummy_instance = DummyClass.new dummy_instance.extend(Auth0::Api::V2::Blacklists) dummy_instance.extend(Auth0::Api::V2::Router) @instance = dummy_instance end context ".blacklisted_tokens" do it {expect(@instance).to respond_to(:blacklisted_tokens)} it "is expected to call /api/v2/blacklists/tokens" do expect(@instance).to receive(:get).with("/api/v2/blacklists/tokens") expect{@instance.blacklisted_tokens}.not_to raise_error end end context ".add_token.to_blacklist" do it {expect(@instance).to respond_to(:add_token_to_blacklist)} it "is expected to call post to /api/v2/blacklists/tokens" do expect(@instance).to receive(:post).with("/api/v2/blacklists/tokens", {aud: "aud", jti: "jti"}) @instance.add_token_to_blacklist("jti", "aud") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auth0-ruby-0.10 | spec/lib/auth0/api/v2/blacklists_spec.rb |