aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/db_tests.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-10-23 23:40:45 -0400
committerRalph Amissah <ralph@amissah.com>2013-10-23 23:40:45 -0400
commitedd89902036bde18c91031470e19c871a182cf6d (patch)
tree1269e7b1660aa64896fc21768002e837233c2c24 /lib/sisu/v5/db_tests.rb
parentv4 v5: version & changelog (diff)
v5: options & downstream, more use of opt.act instead of opt.cmd
* opt.act.*.set==:on instead of opt.cmd =~/\S/
Diffstat (limited to 'lib/sisu/v5/db_tests.rb')
-rw-r--r--lib/sisu/v5/db_tests.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v5/db_tests.rb b/lib/sisu/v5/db_tests.rb
index 5cc7c982..2e93ba11 100644
--- a/lib/sisu/v5/db_tests.rb
+++ b/lib/sisu/v5/db_tests.rb
@@ -64,14 +64,14 @@ module SiSU_DbTests
class Test
def initialize(info,opt)
@ck,@opt=info,opt
- unless @opt.cmd =~/q/
+ unless @opt.act[:quiet][:set]==:on
puts @ck.tp[:fns] if @ck.tp[:fns] and not @ck.tp[:fns].empty?
puts @ck.tp[:title] if @ck.tp[:title] and not @ck.tp[:title].empty?
puts @ck.tp[:creator] if @ck.tp[:creator] and not @ck.tp[:creator].empty?
end
end
def verify
- unless @opt.cmd =~/q/
+ unless @opt.act[:quiet][:set]==:on
puts @ck.tp[:fns].length.to_s + ' checklength ' + @ck.tp[:fns] if @ck.tp[:fns] and @ck.tp[:fns].length >@ck.lt_filename
puts @ck.tp[:title].length.to_s + ' checklength ' + @ck.tp[:title] if @ck.tp[:title] and @ck.tp[:title].length >@ck.lt_title
puts @ck.tp[:subtitle].length.to_s + ' checklength ' + @ck.tp[:subtitle] if @ck.tp[:subtitle] and @ck.tp[:subtitle].length >@ck.lt_subtitle