RSpec results

RSpec Code Examples

 

 

AbstractPresentation class
could be initialized without parameters0.00046s
.html_with_keywords should add br on newlines0.00013s
.html_with_keywords should add <strong> on keywords, by default0.00008s
.html_with_keywords should replace strong with another tag0.00007s
.html_with_keywords should add class to tag0.00007s
Buhos administration
when analyst try to access admin pages
should route /admin/groups be prohibited0.12697s
should route /group/new be prohibited0.00372s
should route /role/new be prohibited0.00359s
should route /admin/users be prohibited0.00357s
should route /user/new be prohibited0.00404s
should route /role/new be prohibited0.00365s
when admin try to access admin pages
should route /admin/groups be available for admin0.02704s
should route /admin/roles be available for admin0.01391s
should route /group/new be available for admin0.01209s
should route /admin/users be available for admin0.01285s
should route /user/new be available for admin0.02318s
should route /role/new be available for admin0.01273s
when group edit view is acceded
response should be ok0.00396s
when json group information is acceded,response
should be ok0.00330s
should be parsed as JSON0.00308s
should JSON have 5 keys0.00208s
when new group is created
response should be redirect0.00014s
should create a new group object0.00041s
should have correct name0.00034s
when group is deleted
should response be redirect0.00014s
shoud delete object0.00024s
Generate crossref references on admin stage
when '/review/:rev_id/stage/:stage/generate_crossref_references' is retrieved
should be a redirect0.00709s
should include url for stream0.00290s
when '/review/:rev_id/stage/:stage/generate_crossref_references_stream' is retrieved
should send correct content_type0.00012s
should send correct information0.00070s
Stage administration with complete data
when check number of resolution on each stage
should have 22 yes resolutions on sta0.00039s
should have 63 no resolutions on sta0.00032s
should have 9 yes resolutions on sr0.00029s
should have 18 no resolutions on sr0.00029s
should have 27 yes resolutions on rft0.00029s
should have 3 no resolutions on rft0.00027s
when accept to 'yes' on 2 'no' decisions on sta
should response be ok0.00014s
should have 78 yes resolutions0.00040s
should have 7 no resolutions0.00030s
when check assignations on each stage
should have 85 for admin on sta0.00035s
should have 26 for admin on sr0.00029s
should have 30 for admin on rft0.00028s
when add a commentary on a assignation
should response be ok0.00016s
should create commentary on assignation object0.00062s
when assign all document for admin on sta
should have 85 assignations on sta0.00037s
should have 84 assignations on sta if we remove one later0.01362s
when remove all assignations for admin on sta
should have 0 assignations on sta0.03579s
should have 1 assignations on sta if we add one later0.02471s
when assign all document without previous assignation on sta
should have 84 assignations on sta0.00043s
when bibtex is retrieved
should response be ok0.00014s
should content type be text/x-bibtex0.00009s
should content-disposition is attachment and include .bib0.00009s
when doi list is retrieved
should response be ok0.00016s
should content type be text/plain0.00009s
when graphml is retrieved for report stage
should response be ok0.00016s
should content type be text/plain0.00009s
when graphml is retrieved for all canonical documents
should response be ok0.00015s
should content type be text/plain0.00009s
when excel is retrieved for report stage
should response be ok0.00015s
should content type be text/plain0.00010s
Bibliographic File Processor
when usual BibTeX is used
should error be false0.03479s
should create 6 records0.01960s
should create 6 canonical documents0.01715s
when a basic BibTeX is used
should error be false0.01411s
should create 6 records0.01469s
should create 6 canonical documents0.01471s
should not have info for authors0.01713s
when a basic BibTeX is used and later updated
should error be false0.02732s
should maintain 6 records0.02705s
should maintain 6 canonical documents0.02715s
should update authors 0.02796s
when erroneous BibTeX is used
should .error be true0.00219s
should not create any record0.00183s
should not create any canonical document0.00177s
when a real BibTeX with references is used
should error be false0.09215s
should maintain 1 records0.09244s
should maintain 1 canonical documents0.09038s
should create 353 references0.09298s
when #get_integrator is called
should retrieve false 0.00228s
BibliographicalImporter::BibTeX
using WoS BibTeX
should retrieve 1 articles0.00010s
author should include Lenberg, Feldt and Wallgren0.00012s
authors should be 30.00007s
title should be 'Behavioral software engineering: A definition and systematic literature review'0.00006s
references should be 3530.00006s
using Scopus BibTeX
should retrieve 1 articles0.00009s
author should include Lenberg, Feldt and Wallgren0.00009s
title should be 'Behavioral software engineering: A definition and systematic literature review'0.00006s
references should be 3580.00006s
using auto-generated BibTeX
should retrieve 1 articles0.00008s
author should include Gabriel and Levin0.00008s
title should be 'Title 1'0.00006s
BibliographicalImporter::CSV for RefWorks
should retrieve 97 articles0.00014s
first author should be 'Alby,Francesca and Zucchermaglio,Cristina and Fatigante,Marilena'0.00009s
BibliographicalImporter::PmcEfetchXml
should retrieve 2 articles0.00011s
first article should have correct pubmed id0.00009s
first article should have correct doi0.00006s
first article should have a not nil abstract0.00006s
second article should have a not nil abstract0.00006s
first article author should be 'Benson, Dennis A and Cavanaugh, Mark and Clark, Karen and Karsch-Mizrachi, Ilene and Lipman, David J and Ostell, James and Sayers, Eric W '0.00008s
first article should have correct title0.00006s
first article should have correct journal title0.00005s
second article author should be 'Hengartner, Michael P'0.00005s
Buhos::CriteriaProcessor
should do nothing if empty0.00095s
with some predefined criteria
should add a criterion0.00553s
should not add a criterion if text is empty0.00441s
should remove a criterion0.00415s
Canonical Document merging
when /canonical_document/actions is used
a redirect back0.00015s
behaves like correct merge
should retain 2 canonical document0.00040s
should canonical document retained equal to first listed0.00040s
should canonical document retained have correct title0.00043s
should canonical document retained have correct year0.00037s
should canonical document retained have correct author0.00033s
should canonical document retained have correct doi0.00033s
should canonical document retained have correct pmid0.00034s
should canonical document retained have correct journal0.00033s
should record_searches will be correct0.00037s
should records all link to correct canonical_document0.00052s
when CanonicalDocument.merge is used
behaves like correct merge
should retain 2 canonical document0.00026s
should canonical document retained equal to first listed0.00042s
should canonical document retained have correct title0.00036s
should canonical document retained have correct year0.00036s
should canonical document retained have correct author0.00035s
should canonical document retained have correct doi0.00036s
should canonical document retained have correct pmid0.00035s
should canonical document retained have correct journal0.00037s
should record_searches will be correct0.00037s
should records all link to correct canonical_document0.00048s
when CanonicalDocument.merge is used with different order
should canonical document retained equal to first listed0.00042s
when /review/1/automatic_deduplication is used
behaves like correct merge
should retain 2 canonical document0.00026s
should canonical document retained equal to first listed0.00038s
should canonical document retained have correct title0.00033s
should canonical document retained have correct year0.00034s
should canonical document retained have correct author0.00034s
should canonical document retained have correct doi0.00033s
should canonical document retained have correct pmid0.00034s
should canonical document retained have correct journal0.00032s
should record_searches will be correct0.00038s
should records all link to correct canonical_document0.00046s
when /canonical_document/merge is used
behaves like correct merge
should retain 2 canonical document0.00028s
should canonical document retained equal to first listed0.00037s
should canonical document retained have correct title0.00033s
should canonical document retained have correct year0.00033s
should canonical document retained have correct author0.00031s
should canonical document retained have correct doi0.00032s
should canonical document retained have correct pmid0.00031s
should canonical document retained have correct journal0.00032s
should record_searches will be correct0.00037s
should records all link to correct canonical_document0.00046s
Search on canonical documents
when /review/:id/canonical_documents is called with a complete query
should response be ok0.00013s
should include document in body0.00010s
when /review/:id/canonical_documents is called with a only title query
should response be ok0.00014s
should include document in body0.00009s
when /review/:id/canonical_documents is called with a bad query
should response be ok0.00013s
should not include document in body0.00010s
Canonical Document
when view crossref information of a canonical document
should contain information about title0.00097s
when cleaning references for canonical document
should be redirect0.00017s
should be no references assigned to the canonical document0.00046s
when edit a canonical document using form
response should be ok0.00016s
object should have new title0.00049s
when view information about a canonical document assigned to a systematic review
response should be ok0.00011s
should include title of canonical document1.66071s
when view information about cites to canonical document assigned to a systematic review
response should be ok0.00012s
should include title of canonical document0.07004s
when view information about articles cited by canonical document assigned to a systematic review
response should be ok0.00015s
should include title of canonical document0.01697s
when view information about articles cited by rtr canonical document assigned to a systematic review
response should be ok0.00014s
should include title of canonical document0.01666s
when view Pubmed info for a canonical document
response should be ok0.00014s
should include title of canonical document1.21682s
Tags on canonical documents
when tags action is called on /review/X/canonical_documents
should redirect to the correct url0.00015s
when /review/:sr_id/canonical_documents/tags/actions for add_for_all
should redirect to the correct url0.00016s
should add a link between document and tag0.00122s
when /review/:sr_id/canonical_documents/tags/actions for remove_for_all
should redirect to the correct url0.00017s
should add a link between document and tag0.00105s
when /review/:sr_id/canonical_documents/tags/actions for remove_for_all
should redirect to the correct url0.00014s
should add a link between document and tag0.00086s
Error codes for no available resources
when review resources are accessed for no available review
should route /review/1 responds with 404 status, and a message with code object and code 10.00526s
should route /review/1/edit responds with 404 status, and a message with code object and code 10.00567s
should route /review/1/canonical_documents responds with 404 status, and a message with code object and code 10.00517s
should route /review/1/repeated_canonical_documents responds with 404 status, and a message with code object and code 10.00788s
should route /review/1/searches responds with 404 status, and a message with code object and code 10.00780s
should route /review/1/tags responds with 404 status, and a message with code object and code 10.00852s
should route /review/1/messages responds with 404 status, and a message with code object and code 10.00928s
should route /review/1/fields responds with 404 status, and a message with code object and code 10.00531s
should route /review/1/files responds with 404 status, and a message with code object and code 10.00541s
when review administration resources are accessed
should route /review/1/administration_stages responds with 404 status, and a message with code object and code 10.00861s
should route /review/1/administration/search responds with 404 status, and a message with code object and code 10.01103s
should route /review/1/administration/screening_title_abstract responds with 404 status, and a message with code object and code 10.00741s
should route /review/1/administration/screening_references responds with 404 status, and a message with code object and code 10.00653s
should route /review/1/administration/review_full_text responds with 404 status, and a message with code object and code 10.00452s
should route /review/1/administration/report responds with 404 status, and a message with code object and code 10.00656s
should route /review/1/administration/screening_title_abstract/cd_assignations responds with 404 status, and a message with code object and code 10.01603s
should route /review/1/administration/screening_title_abstract/cd_without_allocations responds with 404 status, and a message with code object and code 10.01043s
should route /review/1/stage/screening_title_abstract/complete_empty_abstract_manual responds with 404 status, and a message with code object and code 10.00973s
when review stages resources are accessed
should route /review/1/screening_title_abstract responds with 404 status, and a message with code object and code 10.01152s
should route /review/1/screening_references responds with 404 status, and a message with code object and code 10.00947s
should route /review/1/review_full_text responds with 404 status, and a message with code object and code 10.00753s
when user enter extract information form
should route /review/1/extract_information/cd/137 responds with 404 status, and a message with code object and code 10.00891s
when review searches resources are accessed
should route /review/1/searches/user/1 responds with 404 status, and a message with code object and code 10.00591s
should route /review/1/search/new responds with 404 status, and a message with code object and code 10.01997s
should route /review/1/searches/compare_records responds with 404 status, and a message with code object and code 10.00838s
when search resources are accessed
should route /search/1 responds with 404 status, and a message with code object and code 10.00882s
should route /search/1/edit responds with 404 status, and a message with code object and code 10.00885s
should route /search/1/records responds with 404 status, and a message with code object and code 10.00959s
should route /search/1/references responds with 404 status, and a message with code object and code 10.00611s
when reports are accessed
should route /review/1/report/PRISMA/html responds with 404 status, and a message with code object and code 10.00691s
should route /review/1/report/fulltext/html responds with 404 status, and a message with code object and code 10.00623s
should route /review/1/report/process/html responds with 404 status, and a message with code object and code 10.00487s
when canonical documents resources are accessed
should route /canonical_document/1 responds with 404 status, and a message with code object and code 10.00687s
should route /canonical_document/1/search_similar responds with 404 status, and a message with code object and code 10.00829s
should route /canonical_document/1/view_crossref_info responds with 404 status, and a message with code object and code 10.00457s
when user resources are accessed
should route /user/1000 responds with 404 status, and a message with code object and code 10.00393s
should route /user/1000/messages responds with 404 status, and a message with code object and code 10.00498s
should route /user/1000/compose_message responds with 404 status, and a message with code object and code 10.00495s
should route /user/1000/change_password responds with 404 status, and a message with code object and code 10.00498s
when tag resources are accesed
should route /tag/2/rs/1/cds responds with 404 status, and a message with code object and code 20.00530s
should route /tag/2/rs/1/stage/screening_title_abstract/cds responds with 404 status, and a message with code object and code 20.00567s
Buhos::SchemaCreation
#create_db_from_scratch
create three users0.05236s
create two groups0.05444s
create 6 taxonomies0.05208s
create 20 categories0.05474s
#create_db_from_scratch applied twice
create three users0.00028s
create two groups0.00019s
create 6 taxonomies0.00018s
create 20 categories0.00030s
Criteria related models
when /review/criteria/id is called
should add a CdCriterion object0.00114s
Criterion model
.get_criteria should create a new criteria0.00144s
SrCriterion model
.sr_criterion_add should add a new criteria to sr0.00178s
.sr_criterion_add on an already added criterion do nothing0.00212s
.sr_criterion_remove should remove a criterion on sr0.00182s
.sr_criterion_remove should do nothing if remove a criterion doesn't associate to sr0.00226s
Buhos::DBAdapter
.use_db change the db on Sequel::Model associations0.14324s
allows to change model without interference between tests0.16229s
Decision on documents
when decision retrieved on screening title and abstract stage
should be ok0.00015s
should include "/decision/review/1/user/1/canonical_document/41/stage/screening_title_abstract/decision"0.00016s
when decision retrieved on screening title and abstract stage with wrong argument
should not be ok0.00015s
when decision button is pressed on screening title and abstract stage
should be ok0.00015s
should eq "undecided"0.00053s
should include "/decision/review/1/user/1/canonical_document/41/stage/screening_title_abstract/decision"0.00014s
when commentary is added to decision
should be ok0.00024s
should eq "COMMENTARY"0.00065s
Stage administration using external data
when /references/search_crossref_by_doi/:doi is used with a doi assigned to a ref
should redirect0.00019s
should create a canonical document with correct doi0.00048s
when add_doi on a valid reference
should create a canonical document with correct information0.00055s
should link reference to canonical document with correct information0.00066s
when /record/:id/search_crossref is called with a record
should show a page including the name of reference0.00015s
when /reference/:id/search_crossref is called with a ref without doi
should show a page including the name of reference0.00045s
when /reference/:id/search_crossref is called with a ref with a doi
should redirect0.00025s
should create a canonical document with correct doi0.00133s
when /search/:id/records/complete_doi is called
should create a correct crossref_integrator on Canonical Document0.00160s
should create references assigned to record0.00288s
at least one reference have a doi assigned0.00139s
asign canonical document to reference with proper doi0.00077s
when /canonical_document/:id/search_crossref_references used
should create a canonical document with correct information0.00057s
should link reference to canonical document with correct information0.00065s
when canonical_documents/review/:rev_id/complete_pubmed_pmid is called
should response be ok0.00021s
should pmid be correct0.00058s
when /review/:rev_id/stage/:stage/complete_empty_abstract_scopus is called
should response be ok0.00015s
should include correct abstract on canonical document0.00039s
when /canonical_documents/review/:review_id/complete_abstract_scopus is called
should response be ok0.00015s
should include correct abstract on canonical document0.00042s
when /canonical_document/:id/search_abstract_scopus is called
should response be ok0.00014s
should include correct abstract on canonical document0.00042s
when /review/:rev_id/stage/:stage/complete_empty_abstract_pubmed is called
should response be ok0.00080s
should include correct abstract on canonical document0.00161s
when search for crossref references
should be redirect0.00016s
when search for crossref data
should be redirect0.00014s
when search for pubmed data
should be redirect0.00015s
when update information of a canonical document using crossref
expect last response to be redirect0.00023s
should update correct title and author0.00174s
when /search/:id/references/generate_canonical_doi/:n called using crossref
expect last response to be redirect0.00014s
should update correct title and author0.00006s
Buhos extraction of data
when admin request form for a included document (40)
should be ok0.17208s
should include "Better software required"0.12554s
should include "[RevMan]"0.13906s
when enter information on form
should be ok0.01302s
should eq "NEW VALUE"0.01504s
should include "NEW VALUE"0.16813s
when admin request form for a not included document (64)
should be redirect0.00803s
when request form response by not assigned user
should not be ok0.00868s
should be redirect0.00834s
Files:
when upload a file using /review/files/add
should response will be redirect0.00014s
should create an file object0.00029s
should create an file object with correct mime type0.00024s
should create a file on correct directory0.00031s
should create a file of correct size0.00029s
when upload a file using /review/files/add, adding a canonical document
should response will be redirect0.00015s
should create an file object0.00041s
should create an file object with correct mime type0.00033s
should create a file on correct directory0.00029s
should create a file of correct size0.00027s
should create a relationship between file and canonical on database0.00039s
/files/rs/:systematic_review_id/assign_to_canonical_documents is called
should return a redirect0.00013s
when access ViewerJs
should return correct html0.01429s
when access /ViewerJS/..file/:id/download format, response
should response be ok0.00015s
should content type be application/pdf0.00011s
should content length be correct0.00010s
when user downloads a file, response
should response be ok0.00016s
should content type be application/pdf0.00008s
should content length be correct0.00010s
when user downloads a file, response
should response be ok0.00016s
should content type be application/pdf0.00007s
should content length be correct0.00010s
should include "inline"0.00015s
when user retrieves a page from a pdf as text, response
should be ok0.00018s
should include "text/html"0.00018s
should include "ExaCT"0.00024s
when user retrieves a page from a pdf as image, response
should be ok0.01431s
should include "image/png"0.00074s
should be > 00.00056s
when change attribute of a file
should be ok0.00021s
should row on database be changed0.00044s
when assign a file to a canonical document
response should be ok 0.00020s
response should include a link to document0.00014s
relation should be included on database0.00067s
when unassign a file to a canonical document
by /file/assign_to_canonical should return a text 0.00632s
by /file/unassign_cd should delete object0.00538s
when hide a file from canonical document
first should be visible0.00291s
after unassign should be not visible0.00440s
when hide a file from canonical document
first should be not visible0.00452s
after show it should be not visible0.00620s
when unassign a file from a systematic review
response should be ok0.00230s
should remove relation between Systematic Review and File0.00270s
when file is deleted
should be ok0.00016s
archivo object doesn't exists0.00023s
when FileSr.files_wo_cd is used
should return a dataset0.00061s
should be empty0.00062s
Fulltext Report
when html is retrieved
it should behave like html standard report
should response be ok0.00013s
should include name of review0.00010s
when full text report excel is downloaded
it should behave like excel standard report
should response be ok0.00017s
should content type be correct mimetype0.00008s
should content dispostion be attachment and include .xlsx on name0.00009s
Buhos::GraphML_Builder
when report stage is processed
should parse with Nokogiri0.14108s
should have one node per document0.09134s
when all stages are processed
should parse with Nokogiri0.12594s
should have one node per document0.12796s
HTMLHelpers module
provides a_tag0.00011s
provides a_tag_badge0.00012s
provides lf_to_br0.00007s
provides class_bootstrap_contextual0.00007s
provides bool_class0.00007s
provides a_textarea_editable0.00007s
provides decision_class_bootstrap0.00009s
Buhos installer
/installer/select_language should be accesible0.03390s
/installer/select_language should be change according to HTTP_ACCEPT_LANGUAGE0.00253s
/installer/basic_data_form should be accessible0.01174s
when access /
redirects0.00088s
with no body0.00077s
when /installer/select_language form is sended
should change locale to es if params['language'] is es0.00148s
should change locale to es if params['language'] is en0.00103s
should raise error if params['language'] is unknown0.00075s
when basic_data_form is send
should return correct status and redirect0.00234s
should create correct env file for mysql0.00510s
when only sqlite data is send
should return correct status and redirect0.00159s
should create correct env file for sqlite0.00150s
when /installer/populate_database is called
should show success message0.01548s
when /installer/populate_database is called
should show success message0.54576s
Resources availability:
should route / be available for admin0.62210s
when admin resources are accessed
should route /admin/users be available for admin0.00471s
should route /admin/groups be available for admin0.00645s
should route /admin/roles be available for admin0.00733s
should route /admin/routes be available for admin0.06798s
should route /admin/authorizations be available for admin0.13332s
when role resources are accessed
should route /role/guest be available for admin0.02053s
should route /role/guest/edit be available for admin0.00969s
should not route /role/administrator/edit be available for admin0.00496s
when group resources are accessed
should route /group/1 be available for admin0.00848s
should route /group/1/edit be available for admin0.00612s
when user resources are accessed
should route /user/1 be available for admin0.00817s
route /user/1/edit should be redirect to /user/1 0.00520s
when review resources are accessed
should route /reviews be available for admin0.39063s
should route /review/new be available for admin0.03663s
should route /review/1 be available for admin0.05338s
should route /review/1/dashboard be available for admin0.40367s
should route /review/1/edit be available for admin0.01210s
should route /review/1/delete be available for admin0.06331s
should route /review/1/canonical_documents be available for admin0.39657s
should route /review/1/repeated_canonical_documents be available for admin0.03197s
should route /review/1/searches be available for admin0.06765s
should route /review/1/tags be available for admin0.07508s
should route /review/1/messages be available for admin0.04459s
should route /review/1/fields be available for admin0.02497s
should route /review/1/files be available for admin0.11715s
when review administration resources are accessed
should route /review/1/administration_stages be available for admin0.09442s
should route /review/1/administration/search be available for admin0.32882s
should route /review/1/administration/screening_title_abstract be available for admin0.41070s
should route /review/1/administration/screening_references be available for admin0.58656s
should route /review/1/administration/review_full_text be available for admin0.41433s
should route /review/1/administration/report be available for admin0.25076s
should route /review/1/administration/screening_title_abstract/cd_assignations be available for admin0.18001s
should route /review/1/administration/screening_title_abstract/cd_without_allocations be available for admin0.10659s
should route /review/1/stage/screening_title_abstract/complete_empty_abstract_manual be available for admin0.24141s
when review stages resources are accessed
should route /review/1/screening_title_abstract be available for admin0.16417s
pager should work on screeing title and abstract0.15861s
should route /review/1/screening_references be available for admin0.22038s
pager should work on screening references0.22623s
should route /review/1/review_full_text be available for admin0.25340s
pager should work on full text review0.21712s
when user enter extract information form
should route /review/1/extract_information/cd/137 be available for admin0.14098s
when review searches resources are accessed
should route /review/1/records be available for admin0.09700s
should route /review/1/records/user/1 be available for admin0.04480s
should route /review/1/search/1/record/1/complete_information be available for admin0.01724s
should route /review/1/searches/user/1 be available for admin0.01297s
should route /review/1/search/bibliographic_file/new be available for admin0.07266s
should route /review/1/search/uploaded_files/new be available for admin0.01265s
should route /review/1/searches/compare_records be available for admin0.02639s
should route /review/1/searches/analyze be available for admin0.03508s
when search resources are accessed
should route /search/1 be available for admin0.01220s
should route /search/1/edit be available for admin0.00779s
should route /search/1/records be available for admin0.03961s
should route /search/1/record/1 be available for admin0.03428s
should route /search/1/references be available for admin0.15981s
when reports are accessed
should route /review/1/report/PRISMA/html be available for admin0.09970s
should route /review/1/report/fulltext/html be available for admin0.11084s
should route /review/1/report/process/html be available for admin0.24784s
when records are accessed
should route /record/1 be available for admin0.02451s
when references are acceded
should route /reference/19e8abd776da3d40aec0158e8ef105959bd9b57bdb5f64ce07ec3d33a0324334 be available for admin0.02144s
should route /reference/19e8abd776da3d40aec0158e8ef105959bd9b57bdb5f64ce07ec3d33a0324334/search_similar be available for admin0.32546s
when canonical documents resources are accessed
should route /canonical_document/1 be available for admin0.01802s
should route /canonical_document/1/search_similar be available for admin0.51420s
should route /canonical_document/1/view_crossref_info be available for admin0.02088s
when user resources are accessed
/my_messages redirects to /user/10.00720s
should route /user/1 be available for admin0.01041s
should route /user/1/messages be available for admin0.02514s
should route /user/1/compose_message be available for admin0.01274s
should route /user/1/change_password be available for admin0.00938s
when tag resources are accesed
should route /tag/2/rs/1/cds be available for admin0.09662s
should route /tag/2/rs/1/stage/screening_title_abstract/cds be available for admin0.11323s
Resources nonavailability:
when review resources are accessed
should route /review/1 responds with 404 status0.00196s
should route /review/1/dashboard responds with 404 status0.00215s
should route /review/1/edit responds with 404 status0.00187s
should route /review/1/delete responds with 404 status0.00186s
should route /review/1/canonical_documents responds with 404 status0.00177s
should route /review/1/repeated_canonical_documents responds with 404 status0.00184s
should route /review/1/searches responds with 404 status0.00183s
should route /review/1/tags responds with 404 status0.00189s
should route /review/1/messages responds with 404 status0.00223s
should route /review/1/fields responds with 404 status0.00220s
should route /review/1/files responds with 404 status0.00205s
when review administration resources are accessed
should route /review/1/administration_stages responds with 404 status0.00190s
should route /review/1/administration/search responds with 404 status0.00187s
should route /review/1/administration/screening_title_abstract responds with 404 status0.00190s
should route /review/1/administration/screening_references responds with 404 status0.00188s
should route /review/1/administration/review_full_text responds with 404 status0.00191s
should route /review/1/administration/report responds with 404 status0.00189s
should route /review/1/administration/screening_title_abstract/cd_assignations responds with 404 status0.00239s
should route /review/1/administration/screening_title_abstract/cd_without_allocations responds with 404 status0.00192s
should route /review/1/stage/screening_title_abstract/complete_empty_abstract_manual responds with 404 status0.00188s
when review stages resources are accessed
should route /review/1/screening_title_abstract responds with 404 status0.00187s
pager should work on screeing title and abstract0.00199s
should route /review/1/screening_references responds with 404 status0.00193s
pager should work on screening references0.00195s
should route /review/1/review_full_text responds with 404 status0.00190s
pager should work on full text review0.00226s
when user enter extract information form
should route /review/1/extract_information/cd/137 responds with 404 status0.00194s
when review searches resources are accessed
should route /review/1/records responds with 404 status0.00175s
should route /review/1/records/user/1 responds with 404 status0.00180s
should route /review/1/search/1/record/1/complete_information responds with 404 status0.00141s
should route /review/1/searches/user/1 responds with 404 status0.00189s
should route /review/1/search/bibliographic_file/new responds with 404 status0.00187s
should route /review/1/search/uploaded_files/new responds with 404 status0.00182s
should route /review/1/searches/compare_records responds with 404 status0.00190s
should route /review/1/searches/analyze responds with 404 status0.00143s
when search resources are accessed
should route /search/1 responds with 404 status0.00189s
should route /search/1/edit responds with 404 status0.00185s
should route /search/1/records responds with 404 status0.00195s
should route /search/1/record/1 responds with 404 status0.00196s
should route /search/1/references responds with 404 status0.00210s
when reports are accessed
should route /review/1/report/PRISMA/html responds with 404 status0.00195s
should route /review/1/report/fulltext/html responds with 404 status0.00210s
should route /review/1/report/process/html responds with 404 status0.00198s
when records are accessed
should route /record/1 responds with 404 status0.00188s
when references are acceded
should route /reference/19e8abd776da3d40aec0158e8ef105959bd9b57bdb5f64ce07ec3d33a0324334 responds with 404 status0.00186s
should route /reference/19e8abd776da3d40aec0158e8ef105959bd9b57bdb5f64ce07ec3d33a0324334/search_similar responds with 404 status0.00191s
when canonical documents resources are accessed
should route /canonical_document/1 responds with 404 status0.00213s
should route /canonical_document/1/search_similar responds with 404 status0.00224s
should route /canonical_document/1/view_crossref_info responds with 404 status0.00224s
when tag resources are accesed
should route /tag/2/rs/1/cds responds with 404 status0.00225s
should route /tag/2/rs/1/stage/screening_title_abstract/cds responds with 404 status0.00205s
Buhos login
/login should show a valid page0.01883s
/login should change according to HTTP_ACCEPT_LANGUAGE0.00225s
Incorrect login redirect to login page0.00146s
Correct login redirect to main page0.00241s
Correct login redirect to main page and show dashboard0.00632s
Personal messages:
when sending personal message by form
should redirect to user messages0.00012s
should be show on sender messages inbox0.01756s
should be show on receiver messages inbox0.00516s
when mark personal message as read
should be ok0.00015s
should equal true0.00053s
when reply personal from other account
should raise an 403 error0.00014s
when reply personal messages
should redirect back0.00014s
should be show on sender user messages inbox0.01262s
Systematic review messages:
when retrieve systematic review messages
should be ok0.00014s
when we post a review message
should be redirect0.00016s
should add message on database0.00042s
should be visible on messages page0.01712s
when we post a reply a message
should be redirect0.00015s
should add message on database0.00052s
should have reference to first message0.00075s
should be visible on messages page0.00931s
Pager on evaluation of papers
when screening title abstract
shows that are 85 documents to review 0.18278s
shows 29 documents with decision=yes 0.17007s
when screening title abstract using query
shows a document if title is retrieved0.16231s
when screening references
shows that are 26 documents to review 0.26731s
shows 9 documents with decision=yes 0.30588s
when reviewing full text
shows that are 30 documents to review 0.20695s
shows 27 documents with decision=yes 0.20057s
when reviewing full text using tags
shows 22 documents using tag_select0.20886s
PdfFileProcessor
should raise exception if Search is not uploaded_files type0.25153s
when process is executed
should add a correct file object0.00083s
should add a correct Record0.00054s
should add a correct RecordSearch0.00078s
should create a new CanonicalDocument0.00066s
should add a correct FileCd0.00077s
should add a correct FileSr0.00080s
PdfProcessor
on empty pdf
should retrieve nil abstract0.00637s
should retrieve nil doi0.00559s
should retrieve nil title0.00115s
should retrieve nil author0.00078s
should retrieve nil keywords0.00512s
on Kiritchenko(2010)
should retrieve the abstract0.40282s
should retrieve nil keywords0.00512s
on Howard(2016)
should retrieve the abstract0.48457s
should retrieve correct keywords0.36658s
on Uribe et al.(2013)
should retrieve the abstract0.24509s
should retrieve correct keywords0.21134s
Analysis Form:
when we retrieve the form custom fields for first time
should be ok0.00014s
when we add a new text field
should redirect0.00234s
should add a new field on database0.00047s
when we add a new text field with wrong type
should not be redirect0.00013s
should be status 5000.00010s
should not add a new field on database0.00044s
when we update the text field
should return ok0.00013s
should update the field on the database0.00042s
when we delete a tag
should redirect0.00015s
should delete the field on the database0.00037s
when update analysis table
should create an analysis table0.00100s
should have 5 columns0.00054s
should have correct name fields0.00029s
DoiToPmidProcessor
.doi_list should include '10.1093/nar/gks1195','10.3389/fpsyg.2018.00256'0.00007s
#process shouldn't raise an error0.74005s
when process a list of correct DOI
.doi_as_pmid should have keys for three DOIs0.00063s
.doi_as_pmid should have values equal to correct PMID for known DOI0.00116s
.doi_as_pmid should return nil for unknown DOI0.00037s
when process a list with an incorrect DOI
process should not raise an exception2.24191s
.doi_as_pmid should have keys for three DOIs0.00047s
.doi_as_pmid should have values equal to correct PMID for known DOI0.00038s
.doi_as_pmid should return nil for unknown DOI0.00059s
.doi_as_pmid should return nil for incorrect DOI0.00048s
.doi_bad should list of incorrect DOI0.00037s
PMC::Efetch
.pmid_list should include '23193287','29541051'0.00034s
#process shouldn't raise an error0.81137s
when process a list of correct DOI
.pmid_xml should be an PMC::EfetchXMLSummaries0.00045s
.pmid_xml[0] should be a Nokogiri Object0.00036s
Prisma Report
when svg PRISMA flow diagram is downloaded
should response be ok0.00019s
should content type be image/svg+xml0.00008s
should content dispostion be attachment and include .svg on name0.00011s
Process Report
when html is retrieved
it should behave like html standard report
should response be ok0.00013s
should include name of review0.00009s
when full text report excel is downloaded
it should behave like excel standard report
should response be ok0.00014s
should content type be correct mimetype0.00009s
should content dispostion be attachment and include .xlsx on name0.00009s
Record crossref Processor
when record crossref processor is used on Record 1
should process 38 records0.02925s
records resources
when record/:id is retrieved
should be ok0.00479s
should include record title0.00494s
when record/:id/search_crossref is retrieved
should be ok4.36050s
should include record title0.00619s
when record/:id/assign_doi is called
should be redirect0.00028s
should record include correct doi0.00089s
when record/:id/references_action is called
should be redirect0.00022s
should not be a record with ref_4 assigned to Record0.00076s
when /record/:id/manual_references is called
should create three new references0.00069s
should create three new links between references and records0.00071s
Record
#crossref_query result
should be a kind of Array4.09654s
every element should have a doi0.00935s
#references_id
should retrieve 3 references0.00349s
#add_doi_automatic result on a reference with doi and canonical with doi
should be a kind of Result0.94855s
nothing to do0.00186s
#add_doi_automatic result on a reference with doi, but canonical without it
should be a kind of Result0.00723s
should add doi to canonical document0.00520s
should send a message that doi is already added on record0.00524s
should send a message that doi is assigned to canonical document0.00612s
#references_automatic_crossref
should be a kind of Result0.00023s
should process 50 references0.00010s
record should have now 50 references0.00066s
ReferenceMethods mixin
.authors_apa_6 should retrieve correct authors if defined0.00021s
.authors_apa_6 should retrieve '--NA--' if author is nil0.00017s
.cite_apa_6 should retrieve empty data if no information is given0.00017s
ReferenceProcessor
when reference processor is used
should add doi and canonical document to references without them, if possible0.31624s
Reference resources
when reference with DOI is retrieved
should response be ok0.00014s
should show its code0.00037s
should show its DOI0.00028s
when similar references are retrieved from a reference with canonical
should response be ok0.00015s
should show its code0.00040s
should show that are nothing similar without canonical0.00013s
when similar references are retrieved from a reference without canonical and similar reference
should response be ok0.00018s
should show its code0.00034s
should show that are similar references without canonical0.00017s
when assign DOI to a reference without it
response should be redirect0.00052s
reference should have correct doi0.00122s
when assign canonical document to a reference
response should be redirect0.00030s
reference should have correct doi0.00072s
when mergin similar references
response should be redirect0.00020s
all references should have same canonical document0.00080s
on assign canonical document to a reference
response should be ok0.00018s
response should include reference text0.00037s
response should include list of canonical documents if title is set0.00841s
Reference
when methods to retrieve references are used
#get_by_text should retrieve a reference object0.00077s
#get_by_text_and_doi should retrieve a correct reference object0.00176s
#get_by_text_and_doi(x,x,false) should retrieve nil if reference doesn't exists0.00290s
#get_by_text_and_doi(x,x,true) should retrieve a new reference if doesn't exists0.01073s
#buscar_similares is used, without considering references with canonical documents
should return an array0.24824s
every element should have fields :id, :canonical_document_id, :text, :distancia0.22333s
no element should have canonical_document_id assigned0.22857s
#buscar_similares is used, considering references with canonical documents
should return an array0.22590s
every element should have fields :id, :canonical_document_id, :text, :distancia0.23351s
at least one element should have canonical_document_id assigned0.23017s
#add_doi when no DOI exists
should return correct status0.87628s
should return correct doi0.00084s
should assign correct canonical document to reference0.00228s
#crossref_query when need to query crossref using text
should return an Array0.00319s
should include doi http://dx.doi.org/10.1111/j.1708-8208.2003.tb00188.x0.00321s
Resolution on document
when resolution yes is adopted for specific document
should be ok0.00016s
should response body contain resolution partial 0.00010s
should resolution status be updated0.00050s
when resolution no is adopted for specific document
should be ok0.00017s
should response body contain resolution partial 0.00009s
should resolution status be updated0.00049s
when an incorrect resolution is adopted for specific document
should not be ok0.00013s
should eq 5000.00011s
Roles resources:
/admin/roles
behaves like authorized page
should be accessible for admin0.00763s
should not be accessible for analyst0.00387s
/role/new
behaves like authorized page
should be accessible for admin0.00692s
should not be accessible for analyst0.00386s
/role/analyst
behaves like authorized page
should be accessible for admin0.00563s
should not be accessible for analyst0.00382s
/role/guest/edit
behaves like authorized page
should be accessible for admin0.00622s
should not be accessible for analyst0.00391s
when /admin/roles is retrieved as admin
should have button for new role0.00018s
when /role/X/delete is used
should delete user if admin0.00645s
should not delete user if admin0.00485s
when /role/update is used
should edit a role by admin0.00932s
should not edit a role by admin0.00446s
parser of an abstractCitationResponse object
get correct URI for a request0.14532s
should include correct raw information0.04388s
should return correct processed information0.07564s
parser of an authorRetrievalResponse object
get correct URI for a request0.00380s
should include correct raw information (PENDING: No reason given)
ARR parser of record 34250753834
should include correct article information0.00477s
should include correct authors0.00379s
should include correct author keywords0.00442s
should include correct affiliation 0.00549s
ARR parser of record 58649099193
should include correct article information0.04985s
should include correct authors0.01289s
should include correct author keywords0.01037s
should include correct subject areas0.00853s
should include correct author groups0.00932s
should include correct affiliation 0.00860s
ARR parser of record 70350266120
should include correct article information0.00722s
should include correct authors0.00630s
should include correct subject areas0.00625s
should include correct author groups0.00625s
should include correct affiliation 0.00611s
ARR parser of record 70350640863
should include correct article information0.00742s
should include correct authors0.00620s
should include correct author groups0.00641s
should include correct affiliation 0.00664s
ARR parser of record 75249099053
should include correct article information0.01598s
should include correct authors0.00636s
should include correct author keywords0.00626s
should include correct subject areas0.00667s
should include correct affiliation 0.08849s
ARR parser of record 77953000590
should include correct article information0.01137s
should include correct authors0.00567s
should include correct author groups0.00553s
should include correct affiliation 0.00548s
ARR parser of record 79953058665
should include correct article information0.00534s
should include correct authors0.00430s
should include correct author keywords0.00490s
should include correct subject areas0.00441s
should include correct affiliation 0.00428s
ARR parser of record 84937792319
should include correct article information0.00639s
ARR parser of record 84940101359
should include correct article information0.09754s
should include correct authors0.09182s
should include correct author keywords0.07404s
should include correct subject areas0.07334s
should include correct affiliation 0.10423s
ARR parser of record 84957597416
should include correct article information0.04022s
should include correct authors0.00644s
should include correct author groups0.00575s
should include correct affiliation 0.00582s
ARR parser of record 84958685689
should include correct article information0.00465s
should include correct authors0.00429s
should include correct author keywords0.00440s
should include correct subject areas0.00491s
should include correct affiliation 0.00529s
ARR parser of record 85014256605
should include correct article information0.00643s
should include correct authors0.00633s
should include correct author keywords0.00581s
should include correct subject areas0.00599s
should include correct affiliation 0.00474s
Scopus_Abstract
.get method
should return with eid0.00289s
should return with doi0.00264s
should raise Buhos::NoScopusMethodError is id type is unknown0.00261s
.obtener_abstract_cd method
should return a Result object with error if abstract is not available0.00645s
Search importing bibliographic file:
when check initial state
should be 0 searches0.00049s
should be 0 records0.00031s
should be 0 references0.00028s
when create a search based on a bibliographic file by form
response should be redirect0.00016s
should response redirects to review dashboard0.00054s
should search be created on dataset0.00031s
should search contains correct file name0.00027s
should search bibliographic database will be generic0.00063s
should search date will be 2018-01-010.00031s
should search contains correct file content0.00031s
when review searches is accessed
should be ok0.00801s
should include a row for new search0.00806s
when search view is accesed
should be ok0.00363s
should include the bibliographic database name 0.00365s
should include a link to file0.00355s
when edit form search is acceded
should be ok0.00448s
should include the bibliographic database name 0.00390s
should include a link to file0.00403s
when search file is downloaded
should be ok0.00350s
should response be ok0.00011s
should content type be text/x-bibtex0.00008s
should content length be correct0.00009s
should filename will be correct0.00006s
when process the search using batch form
response should be redirect0.00013s
should response redirects to 'url_back' param0.00008s
records when search is already processed
should be 60.00088s
should have correct titles 0.00088s
should have correct bibliographic db assigned0.00119s
and records view is accesed
should be ok0.00016s
should contain all titles0.00023s
when validate the search with direct link
response should be redirect0.00018s
search should be validated0.00038s
when invalidate the search with direct link
response should be redirect0.00013s
search should be invalidated0.00041s
when try to add DOI for each reference
response should be redirect0.00013s
session message should be0.00023s
SearchParser
should parse a simple query without error0.02082s
should raise an expection on incorrect query0.02136s
.to_sql should include both clausules by AND by default0.01906s
.to_sql should include both clausules by OR using or: option0.01931s
Search made with uploaded files:
when upload a file using /review/process_files
should response will be redirect0.00015s
should create two file objects0.00055s
should create file objects with correct mime type0.00046s
should create files on correct directory0.00053s
should create files of correct size0.00063s
Search Validator
should be initialized correctly0.00056s
on invalid records
.valid should be false0.00213s
.invalid_records should be correct0.00199s
.valid_records should be correct0.00183s
.valid_records_n should be correct0.00165s
.invalid_records_n should be correct0.00174s
search object should be nil0.00179s
should maintain manual search change0.00358s
on empty search
.valid should be false0.00137s
search object should be nil0.00125s
on valid records
.valid should be true0.00240s
.invalid_records should be correct0.00183s
.valid_records should be correct0.00257s
.valid_records_n should be correct0.00261s
.invalid_records_n should be correct0.00176s
search object should be valid0.00167s
on valid records on user without searchs
.valid should be true0.00141s
.invalid_records should be correct0.00135s
.valid_records should be correct0.00140s
.valid_records_n should be correct0.00116s
.invalid_records_n should be correct0.00110s
search object should be valid0.00161s
Similarity Analysis
when analyze similarity on documents with same terms, excluding stopwords
matrix should have all elements to 10.00296s
when analyze similarity from a document with abstract
should be an array0.00324s
should only show similarity for id 2 and 30.00349s
should similarity for id:2 will be higher that for id:30.00318s
when analyze similarity from a document without abstract
should be nil0.00347s
Sinatra::Xeditable_Checkbox::Checbox class
when javascript is retrieved
javascript should include correct class0.00019s
javascript should include correct url0.00015s
when html is retrieved with values
html should include correct data-value0.00014s
html should include correct data-pk0.00011s
html should include correct values0.00013s
when html is retrieved without values
html should include correct data-value0.00013s
html should include correct data-pk0.00014s
html should include correct values0.00017s
Sinatra::Xeditable_Select::Select class
javascript should include correct class0.00013s
javascript should include correct url0.00015s
html should include correct information for non nil value0.00017s
html should include correct information for nil value0.00012s
SystematicReview class
when created by a form
generate a single object0.00048s
should have correct name0.00045s
should have correct group0.00040s
should have correct stage0.00053s
should be associated to correct criteria0.00125s
when deleted by a form
should be 1 systematic review before delete0.00543s
should be 0 systematic review after delete0.01143s
Tags on stage forms
when tag added on a document
should be ok0.00092s
should response body include new tag0.00068s
should object tag_en_cd created 0.00518s
should decision attr should be 'yes'0.00382s
when view of canonical documents for a review and a stage is retrieved
should be ok0.00015s
when view of canonical documents for a review is retrieved
should be ok0.00016s
when tag added for a relation between documents
should be ok0.00019s
should response body include new tag0.00018s
should object tag_en_cd created 0.00098s
should decision attr should be 'yes'0.00075s
when previous tag is approved by another user
should be ok0.00018s
should response body include new tag0.00013s
should object tag_en_cd created 0.00055s
should be two 'yes' decisions0.00085s
when previous tag is rejected by another user
should be ok0.00041s
should response body include new tag0.00023s
should object tag_en_cd created 0.00106s
should be one 'yes' and one 'no ' decisions0.00198s
when json for typeahead are retrieved
should route /tags/basic_10.json be accesible0.00293s
should route /tags/basic_ref_10.json be accesible0.00247s
should route /tags/query_json/new_ta be accesible0.00388s
should route /tags/refs/query_json/new_relat be accesible0.00378s
should route /tags/systematic_review/1/query_json/new_ta be accesible0.00429s
should route /tags/systematic_review/1/ref/query_json/new_relat be accesible0.00414s
when analyzing tags from specific systematic review and user
should response be ok0.00017s
when renaming tag from specific systematic review and user
should create a link between new tag and document0.00234s
should delete reference for old tag0.00087s
should delete the link between old tag and document0.00153s
Tags:
when create a new tag class with a form
should response will be a redirect 0.00055s
should be inserted into database0.00050s
when edit an attribute of a tag using PUT
should response will be ok 0.00057s
should have new name0.00044s
when create a new tag for a class tag
should response will be ok0.00018s
should Tag object exist0.00070s
shoult tag name appears on response0.00016s
should TagInClass object exist0.00113s
when delete a new tag for a class tag
should response will be ok0.00017s
should not tag name appears on response0.00009s
should TagInClass object not exist0.00108s
when delete a tag using /tag/delete_rs
should not have any tag with name TAG10.00064s
should not have any TagInCd with canonical document 10.00053s
User resources:
when editing user data as admin
should response be ok0.00016s
should change user role to guest0.00032s
when editing a login with an already used one
should response be not ok0.00014s
should not change login0.00028s
when editing user data as analyst
should response be not ok0.00013s
should change user role to guest0.00031s
when changing a password as admin
should response be redirect0.00015s
should password be changed0.00034s
when changing a password as admin with incorrect repeat
should response be_redirect0.00015s
should password not be changed0.00048s
when changing own password as analyst
should response be redirect0.00014s
should password be changed0.00043s
when changing another password as analyst
should response be not_ok0.00015s
should password be changed0.00032s