data_miner 0.4.44 → 0.4.45
Sign up to get free protection for your applications and to get access to all the features.
- data/test/data_miner_test.rb +13 -0
- metadata +5 -5
data/test/data_miner_test.rb
CHANGED
@@ -1167,6 +1167,19 @@ end
|
|
1167
1167
|
# todo: have somebody properly organize these
|
1168
1168
|
class DataMinerTest < Test::Unit::TestCase
|
1169
1169
|
if ENV['ALL'] == 'true' or ENV['NEW'] == 'true'
|
1170
|
+
should 'override an existing data_miner configuration' do
|
1171
|
+
AutomobileFuelType.class_eval do
|
1172
|
+
data_miner do
|
1173
|
+
import 'example', :url => 'http://example.com' do
|
1174
|
+
key 'code'
|
1175
|
+
store 'name'
|
1176
|
+
end
|
1177
|
+
end
|
1178
|
+
end
|
1179
|
+
assert_kind_of DataMiner::Import, AutomobileFuelType.data_miner_base.steps.first
|
1180
|
+
assert_equal 'http://example.com', AutomobileFuelType.data_miner_base.steps.first.table.package.url
|
1181
|
+
assert_equal 1, AutomobileFuelType.data_miner_base.step_counter
|
1182
|
+
end
|
1170
1183
|
end
|
1171
1184
|
|
1172
1185
|
if ENV['ALL'] == 'true' or ENV['FAST'] == 'true'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_miner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 85
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 45
|
10
|
+
version: 0.4.45
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-07-
|
20
|
+
date: 2010-07-15 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
requirement: &id007 !ruby/object:Gem::Requirement
|
123
123
|
none: false
|
124
124
|
requirements:
|
125
|
-
- - "
|
125
|
+
- - "="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
hash: 23
|
128
128
|
segments:
|