acceptance_test 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.idea/acceptance_test.iml +0 -3
- data/CHANGES +5 -1
- data/features/wikipedia/step_definitions/steps.rb +4 -8
- data/lib/acceptance_test/cucumber_helper.rb +10 -10
- data/lib/acceptance_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjg0M2M2NTA0NDkyOGY1NDhlMTE5ODQ1MGUyOGQ3ZDc5MjkzZGJhZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWQ2ZmFkMTZlY2M0MWQ4ZjRjYzhhZDZiZTM4Yzc1ZTAzODY1Y2ZhZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Njc4YjA3M2M3NWExNmNhOThmMThjMGQ2MDRmYTBhODNmMTYyZTdiZGNmMjA5
|
10
|
+
N2M3MGMwYTQ1OWIzZTJmY2NjYzJkMGVmOTkyZTA5ZjdiNmZmMTYzYWQ4Mjc5
|
11
|
+
YjJlNDM1Yzk1MmMzODE4NTg5YThlYTg3YjkxNGI5Y2QyYjkzN2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmM0ODY1ZWIzYjUxNTk2ZjM0ZDdkODAyNzljYTc3YmI5NmY4NzAwYzhjY2Qw
|
14
|
+
NGI3ZTMxYjRiNGM4OGZjZWE2NjI4MTQwOWJlYTFjZGFjODBlMWQxMTE2OWQ4
|
15
|
+
OWI3OGVkOTNiZDVkOWMxMGZhNmYyZThlMzkxMWJlYTYyZDAzMjA=
|
data/.idea/acceptance_test.iml
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="CompassSettings">
|
4
|
-
<option name="compassSupportEnabled" value="true" />
|
5
|
-
</component>
|
6
3
|
<component name="FacetManager">
|
7
4
|
<facet type="gem" name="Gem">
|
8
5
|
<configuration>
|
data/CHANGES
CHANGED
@@ -8,16 +8,12 @@ acceptance_test = nil
|
|
8
8
|
cucumber_helper = CucumberHelper.instance
|
9
9
|
|
10
10
|
def create_acceptance_test scenario, cucumber_helper
|
11
|
-
|
11
|
+
source_path = cucumber_helper.source_path(scenario)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
keys = [["keyword"]]
|
14
|
+
values = CSV.read(File.expand_path(source_path))
|
15
15
|
|
16
|
-
|
17
|
-
values = CSV.read(File.expand_path(source_path))
|
18
|
-
|
19
|
-
cucumber_helper.set_outline_table scenario, keys, values
|
20
|
-
end
|
16
|
+
cucumber_helper.set_outline_table scenario, keys, values
|
21
17
|
|
22
18
|
config_name = File.expand_path("spec/acceptance_config.yml")
|
23
19
|
config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
|
@@ -6,22 +6,16 @@ class CucumberHelper
|
|
6
6
|
include Singleton
|
7
7
|
|
8
8
|
def source_type scenario
|
9
|
-
examples
|
10
|
-
|
11
|
-
examples[0][0][5][0][0]
|
9
|
+
examples(scenario)[0][0][5][0][0]
|
12
10
|
end
|
13
11
|
|
14
12
|
def source_path scenario
|
15
|
-
examples
|
16
|
-
|
17
|
-
examples[0][0][5][1][0]
|
13
|
+
examples(scenario)[0][0][5][1][0]
|
18
14
|
end
|
19
15
|
|
20
16
|
def set_outline_table scenario, keys, values
|
21
|
-
|
22
|
-
|
23
|
-
if source_type(scenario) == 'file'
|
24
|
-
examples[0][0][5] = keys + values
|
17
|
+
if scenario.kind_of?(Cucumber::Ast::ScenarioOutline) and source_type(scenario) == 'file'
|
18
|
+
examples(scenario)[0][0][5] = keys + values
|
25
19
|
end
|
26
20
|
end
|
27
21
|
|
@@ -41,4 +35,10 @@ class CucumberHelper
|
|
41
35
|
metadata
|
42
36
|
end
|
43
37
|
|
38
|
+
private
|
39
|
+
|
40
|
+
def examples scenario
|
41
|
+
scenario.instance_variable_get(:@example_sections)
|
42
|
+
end
|
43
|
+
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acceptance_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemspec_deps_gen
|