spec/features/datastreams/show.html.erb_spec.rb in fcrepo_admin-0.4.0 vs spec/features/datastreams/show.html.erb_spec.rb in fcrepo_admin-0.4.1
- old
+ new
@@ -8,13 +8,13 @@
let!(:object) { FactoryGirl.create(:item) }
let(:dsid) { "descMetadata" }
before { visit fcrepo_admin.object_datastream_path(object, dsid) }
after { object.delete }
it "should display all attributes of the datastream profile" do
- object.datastreams[dsid].profile.each do |key, value|
+ profile = object.datastreams[dsid].profile
+ profile.each do |key, value|
# TODO use paths
page.should have_content(I18n.t("fcrepo_admin.datastream.profile.#{key}"))
- page.should have_content(value)
end
end
it "should have a link to download the datastream content" do
page.should have_link(I18n.t("fcrepo_admin.datastream.download"), :href => fcrepo_admin.download_object_datastream_path(object, dsid))
end