spork-local_process 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES
CHANGED
@@ -16,18 +16,19 @@ class Spork::RunStrategy::LocalProcess < Spork::RunStrategy
|
|
16
16
|
# the history
|
17
17
|
2.times {Readline::HISTORY.push argv.join(" ")}
|
18
18
|
|
19
|
-
while
|
19
|
+
while running?
|
20
20
|
test_framework.preload
|
21
21
|
|
22
22
|
begin
|
23
23
|
run_proc :each
|
24
|
-
test_framework.reset
|
25
24
|
test_framework.additional_options = additional_options if additional_options
|
26
25
|
test_framework.run_tests([filter].flatten, stderr, stdout)
|
27
26
|
run_proc :after_each
|
28
27
|
rescue Exception => e
|
29
28
|
puts "#{e.class}: #{e.message}"
|
30
29
|
puts e.backtrace
|
30
|
+
ensure
|
31
|
+
test_framework.reset
|
31
32
|
end
|
32
33
|
|
33
34
|
new_filter = Readline.readline("> '#{test_framework.options_str(filter, additional_options)}' or: ").strip
|
@@ -63,4 +64,9 @@ class Spork::RunStrategy::LocalProcess < Spork::RunStrategy
|
|
63
64
|
end
|
64
65
|
end
|
65
66
|
|
67
|
+
# needed for testing
|
68
|
+
def running?
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
66
72
|
end
|
@@ -63,7 +63,7 @@ describe Spork::RunStrategy::LocalProcess do
|
|
63
63
|
|
64
64
|
Spork.should_receive(:exec_each_run).exactly(loop_count).times
|
65
65
|
Spork.should_receive(:exec_after_each_run).exactly(loop_count).times
|
66
|
-
Spork.stub(:
|
66
|
+
Spork::RunStrategy::LocalProcess.any_instance.stub(:running?) {(loop_count -= 1) != -1}
|
67
67
|
|
68
68
|
test_framework
|
69
69
|
end
|
data/spork-local_process.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "spork-local_process"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
s.authors = ["Jarmo Pertman"]
|
8
8
|
s.email = ["jarmo.p@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/jarmo/spork-local_process"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spork-local_process
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jarmo Pertman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-30 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: spork
|