hiptest-publisher 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiptest-publisher/gherkin_adder.rb +1 -1
- data/lib/templates/behave/actionword.hbs +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aed441d2c5e289cc0a6dd6e8e3837cd273309f8
|
4
|
+
data.tar.gz: c931d3440587c60b9f5896eadf1e61dd03584dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9af7e369dee2a26bb01ad31a1cc40085a1893b85f339be14a763acbaaecc54c3d298d31037a75b06d5c5b15e32aacb537ce939ec19215825f5ca186ba2b669b3
|
7
|
+
data.tar.gz: aba538efc3a191caf6308172835abc0bdf544f9da34a23502ef079d25092fd0958ce0b7141820ba863cd94b0fb85b1b064d8b7c7f2bbf147711fd1d9a4e977c9
|
@@ -34,7 +34,7 @@ module Hiptest
|
|
34
34
|
|
35
35
|
@annotations_counter.actionwords.each do |actionword|
|
36
36
|
actionword.children[:gherkin_annotation] = @annotations_counter.most_used_annotation(actionword) || "Given"
|
37
|
-
actionword.children[:gherkin_used_annotations] = @annotations_counter.all_used_annotations(actionword)
|
37
|
+
actionword.children[:gherkin_used_annotations] = @annotations_counter.all_used_annotations(actionword).any? ? @annotations_counter.all_used_annotations(actionword) :['Given']
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
{{#if rendered_children.gherkin_used_annotations}}
|
2
|
-
{{#each rendered_children.gherkin_used_annotations}}@{{{downcase this }}}(r'{{#remove_last_character ':'}}{{#strip_regexp_delimiters}}{{> gherkin_pattern}}{{/strip_regexp_delimiters}}{{/remove_last_character}}')
|
2
|
+
{{#each rendered_children.gherkin_used_annotations}}@{{{downcase this }}}(r'{{#remove_last_character ':'}}{{#escape_single_quotes}}{{#strip_regexp_delimiters}}{{> gherkin_pattern}}{{/strip_regexp_delimiters}}{{/escape_single_quotes}}{{/remove_last_character}}')
|
3
3
|
{{/each}}def impl(context{{#if has_parameters?}}, {{{ join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}):{{#indent}}
|
4
4
|
context.actionwords.{{{ underscore rendered_children.name }}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{#replace "__datatable" "context.table"}}{{#replace "__free_text" "context.text"}}{{{underscore this}}}{{/replace}}{{/replace}}{{/join}}{{/if}}){{/indent}}{{/if}}
|
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.11.
|
4
|
+
version: 1.11.1
|
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: 2018-04-
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -630,7 +630,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
630
630
|
version: '0'
|
631
631
|
requirements: []
|
632
632
|
rubyforge_project:
|
633
|
-
rubygems_version: 2.
|
633
|
+
rubygems_version: 2.6.14
|
634
634
|
signing_key:
|
635
635
|
specification_version: 4
|
636
636
|
summary: Export your tests from Hiptest into executable tests.
|