Sha256: b65c3c39db3b91c57f68cce8868842c2e23d801fbe08d61825e495acedf8208e
Contents?: true
Size: 652 Bytes
Versions: 19
Compression:
Stored size: 652 Bytes
Contents
require "spec_helper" describe Shogun::Authorizer do let(:authorizer_klass) do class ExampleAuthorizer include Shogun::Authorizer end end let(:authorizer) { authorizer_klass.new } describe "#denied?" do let(:denied?) { authorizer.denied? } context "if #allowed? is true" do it "returns false" do allow(authorizer).to receive(:allowed?).and_return(true) expect(denied?).to be(false) end end context "if #allowed? is false" do it "returns true" do allow(authorizer).to receive(:allowed?).and_return(false) expect(denied?).to be(true) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems