Sha256: 1e7f60b9e44d15f3ffd987269fde3fc7088e10c6f91e1957bc325695d0d4f7cc
Contents?: true
Size: 432 Bytes
Versions: 4
Compression:
Stored size: 432 Bytes
Contents
RSpec.shared_examples "a non-collection model" do describe "roles granted to creator" do subject { described_class.new } let(:user) { FactoryGirl.build(:user) } before { subject.grant_roles_to_creator(user) } it "should include the Editor role in resource scope" do expect(subject.roles.to_a).to eq([Ddr::Auth::Roles::Role.build(role_type: "Editor", agent: user.agent, scope: "resource")]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems