Sha256: 8aacdb5a76727ea40be56746a411e9db262b799117d546885bfeada06cae3191
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
require 'GeneValidatorApp' require 'GeneValidatorApp/database' require 'rspec' module GeneValidatorApp describe 'Database' do let 'root' do GeneValidatorApp.root end let 'empty_config' do File.join(root, 'spec', 'empty_config.yml') end let 'database_dir' do File.join(root, 'spec', 'database') end let 'database_dir_no_db' do File.join(root, 'spec', 'database', 'proteins', 'Cardiocondyla_obscurior') end let 'app' do GeneValidatorApp.init(config_file: empty_config, database_dir: database_dir) end it 'can tell BLAST+ databases in a directory' do end it 'can tell NCBI multipart database name' do # Database.multipart_database_name?('/home/ben/pd.ben/sequenceserver/db/nr.00').should be_true # Database.multipart_database_name?('/home/ben/pd.ben/sequenceserver/db/nr').should be_false # Database.multipart_database_name?('/home/ben/pd.ben/sequenceserver/db/img3.5.finished.faa.01').should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genevalidatorapp-1.4.13 | spec/database_spec.rb |
genevalidatorapp-1.4.12 | spec/database_spec.rb |