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

Version Path
fcrepo_admin-0.6.1 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.6.0 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.5 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.5.pre spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.4 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.3 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.2 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.1 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.5.0 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.4.1 spec/features/objects/permissions.html.erb_spec.rb
fcrepo_admin-0.4.0 spec/features/objects/permissions.html.erb_spec.rb