sniff 0.4.7 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,32 @@
|
|
1
|
+
Given /^a "([^\"]*)" data import fetches results listed in "(.*)"$/ do |model, file_name|
|
2
|
+
@data_import_model = model.constantize
|
3
|
+
table_name = @data_import_model.table_name
|
4
|
+
|
5
|
+
fixture_path = File.expand_path("features/support/imports/#{file_name}", Dir.pwd)
|
6
|
+
|
7
|
+
fixture = Fixtures.new @data_import_model.connection, table_name, model, fixture_path
|
8
|
+
|
9
|
+
@data_import_model.connection.transaction(:requires_new => true) do
|
10
|
+
fixture.delete_existing_fixtures
|
11
|
+
fixture.insert_fixtures
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
When /^a data import verifies "(.*)"$/ do |verification_step_name|
|
16
|
+
@verification = @data_import_model.data_miner_base.steps.find { |f|
|
17
|
+
f.respond_to?(:description) and f.description == verification_step_name
|
18
|
+
}
|
19
|
+
@verification_result = begin
|
20
|
+
@verification.run true
|
21
|
+
true
|
22
|
+
rescue => e
|
23
|
+
false
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
Then /^the verification should be successful$/ do
|
28
|
+
@verification_result.should be_true
|
29
|
+
end
|
30
|
+
Then /^the verification should not be successful$/ do
|
31
|
+
@verification_result.should be_false
|
32
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 9
|
9
|
+
version: 0.4.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Derek Kastner
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-21 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -288,6 +288,7 @@ files:
|
|
288
288
|
- lib/sniff/rake_tasks.rb
|
289
289
|
- lib/test_support/cucumber/step_definitions/carbon_steps.rb
|
290
290
|
- lib/test_support/cucumber/step_definitions/committee_steps.rb
|
291
|
+
- lib/test_support/cucumber/step_definitions/data_steps.rb
|
291
292
|
- lib/test_support/cucumber/support/values.rb
|
292
293
|
- lib/test_support/db/fixtures/census_divisions.csv
|
293
294
|
- lib/test_support/db/fixtures/census_regions.csv
|
@@ -302,8 +303,10 @@ files:
|
|
302
303
|
- lib/test_support/db/fixtures/zip_codes.csv
|
303
304
|
- README.markdown
|
304
305
|
- spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
|
306
|
+
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
305
307
|
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
306
308
|
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
309
|
+
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
307
310
|
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
308
311
|
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
309
312
|
- spec/fixtures/dirigible/lib/dirigible.rb
|
@@ -325,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
325
328
|
requirements:
|
326
329
|
- - ">="
|
327
330
|
- !ruby/object:Gem::Version
|
328
|
-
hash:
|
331
|
+
hash: -1042113649
|
329
332
|
segments:
|
330
333
|
- 0
|
331
334
|
version: "0"
|
@@ -346,8 +349,10 @@ specification_version: 3
|
|
346
349
|
summary: Test support for Brighter Planet carbon gems
|
347
350
|
test_files:
|
348
351
|
- spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
|
352
|
+
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
349
353
|
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
350
354
|
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
355
|
+
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
351
356
|
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
352
357
|
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
353
358
|
- spec/fixtures/dirigible/lib/dirigible.rb
|
@@ -358,3 +363,4 @@ test_files:
|
|
358
363
|
- lib/test_support/cucumber/support/values.rb
|
359
364
|
- lib/test_support/cucumber/step_definitions/carbon_steps.rb
|
360
365
|
- lib/test_support/cucumber/step_definitions/committee_steps.rb
|
366
|
+
- lib/test_support/cucumber/step_definitions/data_steps.rb
|