Sha256: 99ae350583c542828571bb8a58794c02e699a12d5a18465d424ba353c04e51e9
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe FcrepoAdmin::ObjectsController do before { @object = FactoryGirl.create(:item) } after { @object.delete } context "#show" do context "html format" do subject { get :show, :id => @object, :use_route => 'fcrepo_admin' } it { should render_template(:show) } end context "xml format" do subject { get :show, :id => @object.pid, :format => 'xml', :use_route => 'fcrepo_admin' } its(:body) { should eq(@object.object_xml) } end end context "#audit_trail" do context "html format" do subject { get :audit_trail, :id => @object, :use_route => 'fcrepo_admin' } it { should render_template(:audit_trail) } end context "xml format" do subject { get :audit_trail, :id => @object.pid, :format => 'xml', :use_route => 'fcrepo_admin' } its(:body) { should eq(@object.audit_trail.to_xml) } end end context "#permissions" do subject { get :permissions, :id => @object, :use_route => 'fcrepo_admin' } it { should render_template(:permissions) } end end
Version data entries
4 entries across 4 versions & 1 rubygems