hiptest-publisher 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9509d4c5d1aa1a05dd7b333d5b0fc56e983063
|
4
|
+
data.tar.gz: 17c1fac0cddefcd7d8d384b743f08b3d661c789f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa1108806851adbd98a5acaef2763ed93936c860ca874b5f16cbaccf8963199fd54e1ddef9cd2d05d71305ac6db677d16976a71ecd68091fbc3e4d0fd0b8e8e0
|
7
|
+
data.tar.gz: 6483823f89b6aa87be8d70935281a2c325f2b11786e0902c9297e274e5c0deed8691ea3aef88fbf80cd8800425eccb059987c8918d095a8ee8ec368010dd335c
|
@@ -83,7 +83,9 @@ module Hiptest
|
|
83
83
|
{
|
84
84
|
:has_arguments? => !c.children[:arguments].empty?,
|
85
85
|
:has_annotation? => !c.children[:annotation].nil?,
|
86
|
-
:use_main_annotation? => !(c.children[:annotation].nil? || ['and', 'but'].include?(c.children[:annotation]))
|
86
|
+
:use_main_annotation? => !(c.children[:annotation].nil? || ['and', 'but'].include?(c.children[:annotation])),
|
87
|
+
:in_actionword? => c.parent.is_a?(Hiptest::Nodes::Actionword),
|
88
|
+
:in_datatabled_scenario? => c.parent.is_a?(Hiptest::Nodes::Scenario) && has_datasets?(c.parent)
|
87
89
|
}
|
88
90
|
end
|
89
91
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
def
|
1
|
+
{{#if has_datasets?}}def {{{ camelize_lower rendered_children.name }}}({{ join rendered_children.parameters ', ' }}) {{#curly}}{{#indent}}{{> desc}}
|
2
|
+
{{> steps}}{{/indent}}
|
3
|
+
{{/curly}}
|
4
|
+
|
5
|
+
{{rendered_children.datatable}}{{else}}def "{{{ escape_double_quotes rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{{ rendered_children.uid}}}){{/if}}"() {{#curly}}{{#indent}}{{> desc}}{{#unless has_annotations?}}{{#unless is_empty?}}
|
2
6
|
expect:{{/unless}}{{/unless}}
|
3
|
-
{{> steps}}{{
|
4
|
-
|
5
|
-
{{ join rendered_children.parameters ' | ' }}{{#if context.uids}} | hiptestUid{{/if}}
|
6
|
-
{{rendered_children.datatable}}
|
7
|
-
{{/if}}{{/indent}}
|
8
|
-
{{/curly}}
|
7
|
+
{{> steps}}{{/indent}}
|
8
|
+
{{/curly}}{{/if}}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
{{#if use_main_annotation?}}{{rendered_children.annotation}}:
|
2
|
-
{{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}})
|
1
|
+
{{#unless in_actionword?}}{{#unless in_datatabled_scenario?}}{{#if use_main_annotation?}}{{rendered_children.annotation}}:
|
2
|
+
{{/if}}{{/unless}}{{/unless}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}})
|
@@ -1 +1,5 @@
|
|
1
|
-
{{{
|
1
|
+
def "{{{ escape_double_quotes scenario_name }}} - {{{ escape_double_quotes rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{{ rendered_children.uid}}}){{/if}}"() {{#curly}}{{#indent}}
|
2
|
+
expect:
|
3
|
+
{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}})
|
4
|
+
{{/indent}}
|
5
|
+
{{/curly}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiptest-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiptest R&D
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|