Sha256: 7129d4adf215fc2870c7820edf183dcd5f838869e39642faac65333a1a136237

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

require 'spec_helper'

describe "objects/show.html.erb" do
  after { object.delete }
  context "basic object" do
    let(:object) { FactoryGirl.create(:content_model) }
    it "should display the object's properties" do
      visit fcrepo_admin.object_path(object)
      page.should have_content(I18n.t("fcrepo_admin.object.properties.keys.state"))
      page.should have_content(I18n.t("fcrepo_admin.object.properties.keys.create_date"))
      page.should have_content(I18n.t("fcrepo_admin.object.properties.keys.modified_date"))
      page.should have_content(I18n.t("fcrepo_admin.object.properties.keys.owner_id"))
      page.should have_content(I18n.t("fcrepo_admin.object.properties.keys.label"))
    end
    it "should link to all datastreams" do
      visit fcrepo_admin.object_path(object)
      object.datastreams.reject { |dsid, ds| ds.profile.empty? }.each_key do |dsid|
        page.should have_link(dsid, :href => fcrepo_admin.object_datastream_path(object, dsid))
      end
    end
    it "should link to its audit trail" do
      visit fcrepo_admin.object_path(object)
      page.should have_link(I18n.t("fcrepo_admin.audit_trail.title"), :href => fcrepo_admin.object_audit_trail_index_path(object))
    end
    context "object governed by an admin policy" do
      it "should link to the APO"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fcrepo_admin-0.2.0 spec/features/objects/show.html.erb_spec.rb
fcrepo_admin-0.1.1 spec/features/objects/show.html.erb_spec.rb
fcrepo_admin-0.1.0 spec/features/objects/show.html.erb_spec.rb