sauce-cucumber 3.5.2 → 3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.markdown +7 -0
- data/lib/sauce/cucumber.rb +25 -17
- data/sauce-cucumber.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6d3fb658f9836d09907d7b6cf12cedc86437dd
|
4
|
+
data.tar.gz: 643444476d984ad1494ca5839faffefa8198234e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2498352d3d182b11bda668b74a4436136d24b75a4e563befc941df735419bd59f0acf3c46cb6cda961b4b3ae9fce3c6f2842d55a16c35878e374c7b518a7bd47
|
7
|
+
data.tar.gz: 1a9384c1bf6e02945c485daac61620aefef84a58f9f7687645d363f191c4e0caf569bf3e1c5763893e4b9270e91f0b0d94702e16c49b31be89a1968b556b3acb
|
data/changelog.markdown
CHANGED
data/lib/sauce/cucumber.rb
CHANGED
@@ -145,7 +145,15 @@ module Sauce
|
|
145
145
|
driver.finish!
|
146
146
|
|
147
147
|
unless job.nil?
|
148
|
-
|
148
|
+
if scenario.failed?
|
149
|
+
job.passed = false
|
150
|
+
|
151
|
+
# Cuke scenarios with 'Pending' steps are marked 'Passed' by Cucumber
|
152
|
+
# So if they're not 'failed' but are excepted, they're 'pending' so we
|
153
|
+
# don't want to change the status.
|
154
|
+
elsif !scenario.exception
|
155
|
+
job.passed = true
|
156
|
+
end
|
149
157
|
job.save
|
150
158
|
end
|
151
159
|
|
@@ -177,26 +185,26 @@ end
|
|
177
185
|
|
178
186
|
|
179
187
|
begin
|
180
|
-
|
181
|
-
|
182
|
-
class Scenario
|
183
|
-
def sauce_public_link
|
184
|
-
@sauce_public_link ||= ""
|
185
|
-
end
|
188
|
+
cucumber_ast_module = Cucumber::VERSION >= '2.0.0' ? Cucumber::Core::Ast : Cucumber::Ast
|
189
|
+
cucumber_ast_module.module_exec do
|
186
190
|
|
187
|
-
|
188
|
-
|
189
|
-
|
191
|
+
const_get(:Scenario).class_exec do
|
192
|
+
def sauce_public_link
|
193
|
+
@sauce_public_link ||= ""
|
190
194
|
end
|
191
195
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
+
def sauce_public_link=(link)
|
197
|
+
@sauce_public_link = link
|
198
|
+
end
|
199
|
+
end
|
196
200
|
|
197
|
-
|
198
|
-
|
199
|
-
|
201
|
+
const_get(:OutlineTable).const_get(:ExampleRow).class_exec do
|
202
|
+
def sauce_public_link
|
203
|
+
@sauce_public_link ||= ""
|
204
|
+
end
|
205
|
+
|
206
|
+
def sauce_public_link=(link)
|
207
|
+
@sauce_public_link = link
|
200
208
|
end
|
201
209
|
end
|
202
210
|
end
|
data/sauce-cucumber.gemspec
CHANGED
@@ -13,9 +13,9 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "sauce-cucumber"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "#{Sauce::MAJOR_VERSION}.
|
16
|
+
gem.version = "#{Sauce::MAJOR_VERSION}.4"
|
17
17
|
|
18
18
|
gem.add_dependency('sauce', "~> #{Sauce.version}")
|
19
19
|
gem.add_dependency('sauce_whisk', "~>0.0.10")
|
20
|
-
gem.add_dependency('cucumber', ['>= 1.2.0',
|
20
|
+
gem.add_dependency('cucumber', ['>= 1.2.0', '<2.0.0'])
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R. Tyler Croy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sauce
|