autotest 4.2.7 → 4.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,15 +11,19 @@ Improvements over ZenTest
11
11
  - less globals flying around
12
12
  - integration tests
13
13
 
14
+
14
15
  Install
15
16
  =======
16
17
  Uninstall ZenTest first, or autotest will not be found:
17
18
  sudo gem uninstall ZenTest
18
19
  Install:
19
20
  sudo gem install autotest
20
- To install an [AutoTest free ZenTest](http://github.com/grosser/zentest) version:
21
+ Optional: Support for Test::Unit on Rails
22
+ sudo gem install autotest-rails-pure
23
+ Optional: an [ZenTest without Autotest](http://github.com/grosser/zentest) version:
21
24
  sudo gem install zentest-without-autotest
22
25
 
26
+
23
27
  Usage
24
28
  =====
25
29
  - go to a project folder with tests/specs/...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.7
1
+ 4.2.8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{autotest}
8
- s.version = "4.2.7"
8
+ s.version = "4.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Davis"]
12
- s.date = %q{2010-02-10}
12
+ s.date = %q{2010-02-20}
13
13
  s.executables = ["unit_diff", "autotest"]
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -439,7 +439,7 @@ class Autotest
439
439
  unless full.empty? then
440
440
  classes = full.map {|k,v| k}.flatten.uniq
441
441
  classes.unshift testlib
442
- cmds << "#{base_cmd} -e \"%w[#{classes.join(' ')}].each { |f| require f }\" | #{unit_diff}"
442
+ cmds << "#{base_cmd} -e \"[#{classes.map{|klass| "'#{klass}'"}.join(', ')}].each { |f| require f }\" | #{unit_diff}"
443
443
  end
444
444
 
445
445
  partial.each do |klass, methods|
@@ -364,7 +364,7 @@ test_error2(#{@test_class}):
364
364
 
365
365
  unit_diff = File.expand_path("#{File.dirname(__FILE__)}/../bin/unit_diff")
366
366
 
367
- expected = [ "#{RUBY} -I.:lib:test -rubygems -e \"%w[test/unit #{@test}].each { |f| require f }\" | #{unit_diff} -u",
367
+ expected = [ "#{RUBY} -I.:lib:test -rubygems -e \"['test/unit', '#{@test}'].each { |f| require f }\" | #{unit_diff} -u",
368
368
  "#{RUBY} -I.:lib:test -rubygems test/test_fooby.rb -n \"/^(test_something1|test_something2)$/\" | #{unit_diff} -u" ].join("; ")
369
369
 
370
370
  result = @a.make_test_cmd f
@@ -72,7 +72,11 @@ class TestAutotestIntegration < Test::Unit::TestCase
72
72
  write('.autotest_alternate', "Autotest.add_hook(:all_good){print 'all_good';exit}")
73
73
  assert_equal run_autotest('-r .autotest_alternate'), 'all_good'
74
74
  end
75
-
75
+
76
+ should 'support files with whitespaces' do
77
+ write('test/test_a x.rb', "print 'YES'")
78
+ assert_match %r{YES}, run_autotest
79
+ end
76
80
  end
77
81
  end
78
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.7
4
+ version: 4.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-10 00:00:00 +01:00
12
+ date: 2010-02-20 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15