spec/features/objects/show.html.erb_spec.rb in fcrepo_admin-0.3.1 vs spec/features/objects/show.html.erb_spec.rb in fcrepo_admin-0.3.2
- old
+ new
@@ -18,19 +18,19 @@
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.audit_trail_object_path(object))
+ page.should have_link(I18n.t("fcrepo_admin.object.audit_trail.title"), :href => fcrepo_admin.audit_trail_object_path(object))
end
it "should display the object's permissions"
end
context "object governed by an admin policy" do
let(:object) { FactoryGirl.create(:content_model_has_apo) }
after { object.admin_policy.delete }
it "should link to the APO" do
visit fcrepo_admin.object_path(object)
- page.should have_link(object.admin_policy.pid, :href => fcrepo_admin.object_path(object.admin_policy.pid))
+ 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