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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTcyYjgyZDZhM2QwMTA3YThlMjAzNzZkZjZlNjYyYWNkOTA2MGVmMQ==
4
+ Zjg0M2M2NTA0NDkyOGY1NDhlMTE5ODQ1MGUyOGQ3ZDc5MjkzZGJhZg==
5
5
  data.tar.gz: !binary |-
6
- ZTk4NmIzNDk1MTdjMzExZTlkMDlhMTQyZjQ2YWU0YmIzNTllNGYzZg==
6
+ MWQ2ZmFkMTZlY2M0MWQ4ZjRjYzhhZDZiZTM4Yzc1ZTAzODY1Y2ZhZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWFlNWEwN2Y0Mjk4MDdhNGM0MWUzNTdlNDYxY2I2ZDMzNGU1ZTMwZTlmZWQx
10
- YThjMWNjZDMwYWE3YzE0MWUyNmQ3NWVmYzczYjRkY2UzNmI0MWFjZDY2ZjJj
11
- YjE1MGU5MjBiMjg3OWZlZGI2ZTRlNWI3OGYyODQxMGNhNTEyY2E=
9
+ Njc4YjA3M2M3NWExNmNhOThmMThjMGQ2MDRmYTBhODNmMTYyZTdiZGNmMjA5
10
+ N2M3MGMwYTQ1OWIzZTJmY2NjYzJkMGVmOTkyZTA5ZjdiNmZmMTYzYWQ4Mjc5
11
+ YjJlNDM1Yzk1MmMzODE4NTg5YThlYTg3YjkxNGI5Y2QyYjkzN2Q=
12
12
  data.tar.gz: !binary |-
13
- MDg0YWE3NDQwNGZjYTU1OTEzNWI5NzlkODViOTk4OTk4MTY1ZjE1NzhkMDgz
14
- NjhjNGQ1NTA1YzkwOTQ5MWU3NDY2YmMxNzZkNzMxN2IyOTcyZDc5ZDRiZjE3
15
- NzZjNWM1Njg5NjI1MTAyNjVhNWFlOTI5Y2RmZDZjNGQ5Mjk0NTM=
13
+ NmM0ODY1ZWIzYjUxNTk2ZjM0ZDdkODAyNzljYTc3YmI5NmY4NzAwYzhjY2Qw
14
+ NGI3ZTMxYjRiNGM4OGZjZWE2NjI4MTQwOWJlYTFjZGFjODBlMWQxMTE2OWQ4
15
+ OWI3OGVkOTNiZDVkOWMxMGZhNmYyZThlMzkxMWJlYTYyZDAzMjA=
@@ -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
@@ -99,4 +99,8 @@
99
99
 
100
100
  == Version 1.4.6
101
101
 
102
- * Bug fixes
102
+ * Bug fixes
103
+
104
+ == Version 1.4.7
105
+
106
+ * Bug fix
@@ -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
- source_type = cucumber_helper.source_type(scenario)
11
+ source_path = cucumber_helper.source_path(scenario)
12
12
 
13
- if source_type == 'file'
14
- source_path = cucumber_helper.source_path(scenario)
13
+ keys = [["keyword"]]
14
+ values = CSV.read(File.expand_path(source_path))
15
15
 
16
- keys = [["keyword"]]
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 = scenario.instance_variable_get(:@example_sections)
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 = scenario.instance_variable_get(:@example_sections)
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
- examples = scenario.instance_variable_get(:@example_sections)
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
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
3
3
  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.6
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-29 00:00:00.000000000 Z
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