iron_response 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/iron_response/version.rb +1 -1
- data/lib/iron_response.rb +1 -1
- data/test/gem_dependency_test.rb +35 -3
- data/test/workers/fcc_filings_counter.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/lib/iron_response.rb
CHANGED
data/test/gem_dependency_test.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
3
|
class GemDependencyTest < MiniTest::Unit::TestCase
|
4
|
-
def
|
4
|
+
def test_synopsis_with_iron_cache
|
5
5
|
|
6
6
|
config = Configuration.keys
|
7
7
|
batch = IronResponse::Batch.new
|
8
8
|
|
9
|
-
batch.auto_update_worker = true
|
9
|
+
#batch.auto_update_worker = true
|
10
10
|
|
11
|
-
batch.config = config
|
11
|
+
batch.config[:iron_io] = config[:iron_io]
|
12
12
|
|
13
13
|
#batch.config[:iron_io] = config[:iron_io]
|
14
14
|
#batch.config[:aws_s3] = config[:aws_s3]
|
@@ -34,4 +34,36 @@ class GemDependencyTest < MiniTest::Unit::TestCase
|
|
34
34
|
assert_equal Array, results.class
|
35
35
|
assert_equal batch.params_array.length, results.length
|
36
36
|
end
|
37
|
+
|
38
|
+
def test_synopsis_with_aws_s3
|
39
|
+
|
40
|
+
config = Configuration.keys
|
41
|
+
batch = IronResponse::Batch.new
|
42
|
+
|
43
|
+
#batch.auto_update_worker = true
|
44
|
+
|
45
|
+
batch.config = config
|
46
|
+
batch.worker = "test/workers/fcc_filings_counter.rb"
|
47
|
+
|
48
|
+
batch.code.merge_gem("nokogiri", "< 1.6.0") # keeps the build times low
|
49
|
+
batch.code.merge_gem("ecfs")
|
50
|
+
batch.code.full_remote_build(true)
|
51
|
+
|
52
|
+
batch.params_array = [
|
53
|
+
"12-375", "12-268",
|
54
|
+
"12-238", "12-353",
|
55
|
+
"13-150", "13-5",
|
56
|
+
"10-71"
|
57
|
+
].map { |i| {docket_number: i} }
|
58
|
+
|
59
|
+
results = batch.run!
|
60
|
+
|
61
|
+
total = results.map {|r| r["length"]}.inject(:+)
|
62
|
+
|
63
|
+
p "There are #{total} total filings in these dockets."
|
64
|
+
|
65
|
+
assert_equal Array, results.class
|
66
|
+
assert_equal batch.params_array.length, results.length
|
67
|
+
end
|
68
|
+
|
37
69
|
end
|