sambala 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sambala.rb +1 -1
- data/test/tc_sambala_main.rb +7 -0
- metadata +2 -2
data/lib/sambala.rb
CHANGED
@@ -292,7 +292,7 @@ class Sambala
|
|
292
292
|
parse_results(@gardener.harvest(:crop))
|
293
293
|
end
|
294
294
|
|
295
|
-
# The
|
295
|
+
# The queue_empty? method return true if there are no jobs in queue
|
296
296
|
# === Example
|
297
297
|
# samba.queue_empty? # false
|
298
298
|
def queue_empty?
|
data/test/tc_sambala_main.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'globalog'
|
3
3
|
require 'test/unit'
|
4
|
+
require 'fileutils'
|
4
5
|
require File.join( File.dirname( File.expand_path(__FILE__)), '..', 'lib', 'sambala')
|
5
6
|
|
6
7
|
TESTFILE = 'sambala_test'
|
@@ -210,6 +211,12 @@ class TestSambalaMain < Test::Unit::TestCase
|
|
210
211
|
result = @samba.queue_completed
|
211
212
|
@log_test.debug("queue completed results is: #{result.inspect}")
|
212
213
|
assert_kind_of(Array,result)
|
214
|
+
60.times do |n|
|
215
|
+
break unless result[0].nil?
|
216
|
+
sleep 1
|
217
|
+
result = @samba.queue_completed
|
218
|
+
flunk("Could not get any queue done...") if n == 59
|
219
|
+
end
|
213
220
|
assert_kind_of(Array,result[0])
|
214
221
|
assert_equal(4,result[0].size)
|
215
222
|
assert_kind_of(Integer,result[0][0])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sambala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis-Philippe Perron
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-09 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|