Sha256: a1528df6bb9a83d61dc2b98f3af86b3c972bbfad0fbd88eb6f6c8ecfd3001d6a
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' shared_examples "a datastream show page" do it "should display all attributes of the datastream profile" do object.datastreams[dsid].profile.each do |key, value| expect(subject).to have_content(I18n.t("fcrepo_admin.datastream.profile.#{key}")) expect(subject).to have_content(value) end end it "should have a link to download the datastream content" do expect(subject).to have_link(I18n.t("fcrepo_admin.datastream.download"), :href => fcrepo_admin.download_object_datastream_path(object, dsid)) end end shared_examples "an object having datastream show pages" do it_behaves_like "a datastream show page" do let(:dsid) { "DC" } end it_behaves_like "a datastream show page" do let(:dsid) { "RELS-EXT" } end end describe "datastreams/show.html.erb" do subject { page } before { visit fcrepo_admin.object_datastream_path(object, dsid) } after { object.delete } it_behaves_like "an object having datastream show pages" do let(:object) { FactoryGirl.create(:content_model) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.1.1 | spec/features/datastreams/show.html.erb_spec.rb |
fcrepo_admin-0.1.0 | spec/features/datastreams/show.html.erb_spec.rb |