spec/features/datastreams/index.html.erb_spec.rb in fcrepo_admin-0.4.1 vs spec/features/datastreams/index.html.erb_spec.rb in fcrepo_admin-0.5.0

- old
+ new

@@ -2,11 +2,11 @@ describe "datastreams/index.html.erb" do before { visit fcrepo_admin.object_datastreams_path(object) } after { object.delete } let(:object) { FactoryGirl.create(:item) } - it "should link to all persisted datastreams" do - object.datastreams.reject { |dsid, ds| ds.profile.empty? }.each_key do |dsid| - page.should have_link(dsid, :href => fcrepo_admin.object_datastream_path(object, dsid)) + it "should link to all datastreams" do + object.datastreams.each do |dsid, ds| + page.should have_link(dsid, :href => fcrepo_admin.object_datastream_path(object, ds)) end end end