#12 - fixed rspec tests and add some more tests

This commit is contained in:
Joerg Reichert 2017-01-01 13:41:28 +01:00
parent 52f93fcb42
commit c041ae596f
3 changed files with 94 additions and 26 deletions

View file

@ -13,10 +13,11 @@ div
li.search-result
article
h4 = doc.name
ul
- @sub[doc.reference].each do |sub|
li class="#{'current' if sub.reference == doc.reference}"
div = link_to "#{l sub.published_at.to_date}: #{sub.paper_type} von #{sub.originator.join(", ")}", sub.url, target: '_blank'
- if @sub[doc.reference]
ul
- @sub[doc.reference].each do |sub|
li class="#{'current' if sub.reference == doc.reference}"
div = link_to "#{l sub.published_at.to_date}: #{sub.paper_type} von #{sub.originator.join(", ")}", sub.url, target: '_blank'
div#pagination