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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ada2fbb2644c97c76bdc591db3e857bbc2e7e152
4
- data.tar.gz: 16cd2f761282b360ce0c380d516fc9e20f4f5480
3
+ metadata.gz: 1a6d3fb658f9836d09907d7b6cf12cedc86437dd
4
+ data.tar.gz: 643444476d984ad1494ca5839faffefa8198234e
5
5
  SHA512:
6
- metadata.gz: 1236167517a1e686d2ffdf484a50e1c219692e75e637eedf1c5d45125c9361e9d4f78c489339f62bf23ee8a0d9474c846b680acc98d674c8aa1f2133aad31ae4
7
- data.tar.gz: 63c8afab51930e3aedfd5383b60556d4e1f73d05eb6c51023faf8406e478a6e081bb7dcb863afb6e78fc74342e77684643f9beabe5b0e665c00f0595cda5a99d
6
+ metadata.gz: 2498352d3d182b11bda668b74a4436136d24b75a4e563befc941df735419bd59f0acf3c46cb6cda961b4b3ae9fce3c6f2842d55a16c35878e374c7b518a7bd47
7
+ data.tar.gz: 1a9384c1bf6e02945c485daac61620aefef84a58f9f7687645d363f191c4e0caf569bf3e1c5763893e4b9270e91f0b0d94702e16c49b31be89a1968b556b3acb
@@ -2,6 +2,13 @@ Changelog
2
2
  =========
3
3
  3.5
4
4
  -----
5
+ 3.5.4
6
+ -----
7
+ * Don't report unfinished tests as "passed".
8
+
9
+ 3.5.3
10
+ -----
11
+ * Allow Cucumber 2 (Thanks @felixclack!)
5
12
 
6
13
  3.5.2
7
14
  -----
@@ -145,7 +145,15 @@ module Sauce
145
145
  driver.finish!
146
146
 
147
147
  unless job.nil?
148
- job.passed = !scenario.failed?
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
- module Cucumber
181
- module Ast
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
- def sauce_public_link=(link)
188
- @sauce_public_link = link
189
- end
191
+ const_get(:Scenario).class_exec do
192
+ def sauce_public_link
193
+ @sauce_public_link ||= ""
190
194
  end
191
195
 
192
- class OutlineTable::ExampleRow
193
- def sauce_public_link
194
- @sauce_public_link ||= ""
195
- end
196
+ def sauce_public_link=(link)
197
+ @sauce_public_link = link
198
+ end
199
+ end
196
200
 
197
- def sauce_public_link=(link)
198
- @sauce_public_link = link
199
- end
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
@@ -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}.2"
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', "<2.0.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.2
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-06-18 00:00:00.000000000 Z
12
+ date: 2015-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sauce