@@ -8,8 +8,8 @@ module SequenceServer
88 init
99
1010 describe 'Report' do
11- hits_report = Report . generate ( with_hits )
12- no_hits_report = Report . generate ( no_hits )
11+ hits_report = BLAST :: Report . new ( with_hits )
12+ no_hits_report = BLAST :: Report . new ( no_hits )
1313
1414 it 'will return an Array of queries' do
1515 hits_report . queries . should be_a Array
@@ -28,8 +28,8 @@ module SequenceServer
2828 end
2929
3030 describe 'Query' do
31- hits_report = Report . generate ( with_hits )
32- no_hits_report = Report . generate ( no_hits )
31+ hits_report = BLAST :: Report . new ( with_hits )
32+ no_hits_report = BLAST :: Report . new ( no_hits )
3333
3434 it 'will return queries with valid length' do
3535 hits_report . queries . first . length . should be_a Integer
@@ -45,8 +45,8 @@ module SequenceServer
4545 end
4646
4747 describe 'Hits' do
48- hits_report = Report . generate ( with_hits )
49- no_hits_report = Report . generate ( no_hits )
48+ hits_report = BLAST :: Report . new ( with_hits )
49+ no_hits_report = BLAST :: Report . new ( no_hits )
5050
5151 it 'will have non zero length' do
5252 hits_report . queries . last . hits . first . length . should satisfy { |n | n > 0 }
@@ -68,7 +68,7 @@ module SequenceServer
6868 # Test general features of HSPs. Algorithm specific customizations are
6969 # tested separetly.
7070 describe 'HSPs' do
71- hits_report = Report . generate ( with_hits )
71+ hits_report = BLAST :: Report . new ( with_hits )
7272
7373 # Currently using all 17 HSP parameters in BLAST Report + 1 to refer to the
7474 # hit object it belongs to.
@@ -138,7 +138,7 @@ module SequenceServer
138138 #
139139 describe 'BLASTN' do
140140 let 'hsp' do
141- report = Report . generate ( Job . fetch ( 'blast_2.2.30/blastn' ) )
141+ report = BLAST :: Report . new ( Job . fetch ( 'blast_2.2.30/blastn' ) )
142142 report . queries . first . hits . last . hsps . first
143143 end
144144
@@ -158,7 +158,7 @@ module SequenceServer
158158
159159 describe 'BLASTP' do
160160 let 'hsp' do
161- report = Report . generate ( Job . fetch ( 'blast_2.2.30/blastp' ) )
161+ report = BLAST :: Report . new ( Job . fetch ( 'blast_2.2.30/blastp' ) )
162162 report . queries . first . hits . last . hsps . first
163163 end
164164
@@ -176,7 +176,7 @@ module SequenceServer
176176
177177 describe 'BLASTX' do
178178 let 'hsp' do
179- report = Report . generate ( Job . fetch ( 'blast_2.2.30/blastx' ) )
179+ report = BLAST :: Report . new ( Job . fetch ( 'blast_2.2.30/blastx' ) )
180180
181181 report . queries . first . hits . last . hsps . first
182182 end
@@ -194,7 +194,7 @@ module SequenceServer
194194
195195 describe 'TBLASTX' do
196196 let 'hsp' do
197- report = Report . generate ( Job . fetch ( 'blast_2.2.30/tblastx' ) )
197+ report = BLAST :: Report . new ( Job . fetch ( 'blast_2.2.30/tblastx' ) )
198198 report . queries . first . hits . last . hsps . first
199199 end
200200
@@ -211,7 +211,7 @@ module SequenceServer
211211
212212 describe 'TBLASTN' do
213213 let 'hsp' do
214- report = Report . generate ( Job . fetch ( 'blast_2.2.30/tblastn' ) )
214+ report = BLAST :: Report . new ( Job . fetch ( 'blast_2.2.30/tblastn' ) )
215215 report . queries . first . hits . last . hsps . first
216216 end
217217
0 commit comments