tdoc 0.12.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/tdoc.rb +6 -1
  2. metadata +2 -2
data/bin/tdoc.rb CHANGED
@@ -14,7 +14,11 @@ START_IRB="IRB.setup nil; IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context; requir
14
14
 
15
15
  def process(files) #called at end of script
16
16
  if files.class==Array
17
- files.each {|f| system("#{$PROGRAM_NAME} #{f} #{ARGV}")}
17
+ files.each {|f|
18
+ puts "\n\n--------------------\n#{f}:\n\n"
19
+ result=system("#{$PROGRAM_NAME} #{f} #{ARGV}")
20
+ puts "\n\nERRORS IN TEST #{f}!!!\n\n" unless result
21
+ }
18
22
  else
19
23
  test_name=File.basename(files).sub(/\..*?$/,'')
20
24
  test_case=Class.new(Test::Unit::TestCase)
@@ -59,6 +63,7 @@ def mk_test_context(file, test_case=nil)
59
63
  }.compact.join ";\n"
60
64
  [lines[0], test_text]
61
65
  end
66
+ tests=[['work',"assert(true);"]] if tests.empty? #avoids "no tests specified" error
62
67
  context_proc=lambda {
63
68
  context test_name do
64
69
  setup do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herb Daily
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2011-12-05 00:00:00 -03:00
12
+ date: 2011-12-11 00:00:00 -03:00
13
13
  default_executable: tdoc.rb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency