Sha256: 10acc02cd78d9609cbece761f86a2b5a5748715da1a6092d7a1bd2c047b0d12d
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
require "spec_helper" require_relative 'shared_examples/finding_the_right_role.rb' describe Arrthorizer::Role do describe :get do describe "fetching ContextRoles" do let(:expected_role) { Namespaced::ContextRole.instance } # provided by the internal Rails app context "when a ContextRole class is provided" do it_behaves_like "finding the right Role" do let(:arg) { expected_role.class } end end context "when a String representing a ContextRole instance is provided" do it_behaves_like "finding the right Role" do let(:arg) { expected_role.to_key } end end context "when a ContextRole instance is provided" do it_behaves_like "finding the right Role" do let(:arg) { expected_role } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arrthorizer-0.1.0.pre2 | spec/role/get_spec.rb |
arrthorizer-0.1.0.pre | spec/role/get_spec.rb |