Sha256: 84c335ffa8b8e87a9fc94898c851a0bce7d3ce4fa8af10aa985dc37eb0ba8314
Contents?: true
Size: 790 Bytes
Versions: 2
Compression:
Stored size: 790 Bytes
Contents
require 'spec_helper' describe FcrepoAdmin::ObjectsController do let(:object) { FactoryGirl.create(:item) } after { object.delete } context "#show" do subject { get :show, :id => object, :use_route => 'fcrepo_admin' } it { should render_template(:show) } end context "#audit_trail" do subject { get :audit_trail, :id => object, :use_route => 'fcrepo_admin' } it { should render_template(:audit_trail) } end context "#audit_trail?download=true" do subject { get :audit_trail, :id => object, :download => 'true', :use_route => 'fcrepo_admin' } its(:response_code) { should eq(200) } end context "#permissions" do subject { get :permissions, :id => object, :use_route => 'fcrepo_admin' } it { should render_template(:permissions) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.4.1 | spec/controllers/objects_controller_spec.rb |
fcrepo_admin-0.4.0 | spec/controllers/objects_controller_spec.rb |