Sha256: e5b6388713c0e7e7d21a9c11c11a0dcfbbe41f9e5b3dd105fb4e2412797b630f
Contents?: true
Size: 619 Bytes
Versions: 18
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples "an authorization handler" do before do unless respond_to?(:handler) raise "You need to define `handler` (an instance of the authorization handler) in order to run the shared examples." end end describe "to_partial_path" do subject { handler.to_partial_path } it { is_expected.to be_kind_of(String) } end describe "handler_name" do subject { handler.handler_name } it { is_expected.to be_kind_of(String) } end describe "metadata" do subject { handler.metadata } it { is_expected.to be_kind_of(Hash) } end end
Version data entries
18 entries across 18 versions & 2 rubygems