Sha256: a8ffea39145a953bd66eff829df9239b776f87797c6951ec22968122eff9d139
Contents?: true
Size: 607 Bytes
Versions: 11
Compression:
Stored size: 607 Bytes
Contents
require 'spec_helper' describe "objects/permissions.html.erb" do after { object.delete } context "object governed by an admin policy" do let(:object) { FactoryGirl.create(:item) } let(:apo) { FactoryGirl.create(:admin_policy) } before do object.admin_policy = apo object.save end after { apo.delete } it "should link to the APO" do visit fcrepo_admin.permissions_object_path(object) page.should have_link(object.admin_policy.pid, :href => fcrepo_admin.object_path(object.admin_policy)) end it "should display the inherited permissions" end end
Version data entries
11 entries across 11 versions & 1 rubygems