spec/features/associations/index.html.erb_spec.rb in fcrepo_admin-0.4.0 vs spec/features/associations/index.html.erb_spec.rb in fcrepo_admin-0.4.1
- old
+ new
@@ -10,19 +10,19 @@
part.delete
object.reload
end
it "should link to the show view of the association" do
visit fcrepo_admin.object_associations_path(object)
- page.should have_link("1 object", :href => fcrepo_admin.object_association_path(object, "parts"))
+ page.should have_link("Part (1)", :href => fcrepo_admin.object_association_path(object, "parts"))
end
end
context "association is not a collection" do
let(:collection) { FactoryGirl.create(:collection) }
before { collection.members << object }
after { collection.delete }
it "should link to the show view of the target object" do
pending "Bug in Capybara?"
visit fcrepo_admin.object_associations_path(object)
- page.should have_link(collection.pid, :href => fcrepo_admin.object_path(collection))
+ page.should have_link("Collection #{collection.pid}", :href => fcrepo_admin.object_path(collection))
end
end
end