henry-container 0.1.55 → 0.1.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/task/cucumber_task.rb +9 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34257245024380b753b29c0e637c561b7bf82b86
|
4
|
+
data.tar.gz: 8eb7aaa1f953d0e7439d20a02108eb4d302bb33a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c17cf24b9718cd13217612794fd0069741ed58bcc4c0877f15aae53da2c8993ee265b3a8429c26840d8045393e3d646f088c76f57ad94580a91de94c50c997e
|
7
|
+
data.tar.gz: a9078715270cc8dacf6c31026015cd7bbc11e718f09b1f60962e5f0477c5c4e31c964394783037de439d842352d5383bb76bb668a62afd2f0014f4ea74c15bac
|
@@ -75,9 +75,9 @@ module Henry
|
|
75
75
|
Rake.application.clear
|
76
76
|
Cucumber::Rake::Task.new do |t|
|
77
77
|
if self.data.options
|
78
|
-
t.cucumber_opts =
|
78
|
+
t.cucumber_opts = self.custom_options(extended_context['options'])
|
79
79
|
else
|
80
|
-
t.cucumber_opts =
|
80
|
+
t.cucumber_opts = self.default_options()
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
@@ -86,9 +86,10 @@ module Henry
|
|
86
86
|
|
87
87
|
# Returns the custom cucumber_opts that user may have passed.
|
88
88
|
#
|
89
|
+
# @param [Hash] extended_options set of extended options.
|
89
90
|
# @return [String]
|
90
|
-
def custom_options
|
91
|
-
"#{self.format_options} #{self.tags_options} #{self.report_options} #{self.rerun_options} #{self.misc_options}"
|
91
|
+
def custom_options(extended_options={})
|
92
|
+
"#{self.format_options} #{self.tags_options(extended_options)} #{self.report_options} #{self.rerun_options} #{self.misc_options}"
|
92
93
|
end
|
93
94
|
|
94
95
|
# Returns the miscellaneous cucumber_opts.
|
@@ -114,11 +115,12 @@ module Henry
|
|
114
115
|
|
115
116
|
# Returns the cucumber_opts related with tags to be run.
|
116
117
|
#
|
118
|
+
#
|
117
119
|
# @return [String]
|
118
|
-
def tags_options
|
119
|
-
return '' if self.data.options['tags'].nil?
|
120
|
+
def tags_options(extended_options={})
|
121
|
+
return '' if self.data.options['tags'].nil? && extended_options['tags'].nil?
|
120
122
|
|
121
|
-
self.data.options['tags'].collect do |tag|
|
123
|
+
((self.data.options['tags']||[])+(extended_options['tags']||[])).collect do |tag|
|
122
124
|
"--tags #{tag.gsub(/(,?~?)(\w+)/, '\1@\2')}"
|
123
125
|
end.join(' ')
|
124
126
|
end
|