sauce_rspec 1.0.4 → 1.0.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: 2ec8e159585442a450bec77bc3109a6533dc65b7
4
- data.tar.gz: 1494e716cc61da7b0bcd0a438fe1fc59b3628799
3
+ metadata.gz: 3afb3d1c2036f8fb56bce7b4f759a0fb78cb24e0
4
+ data.tar.gz: 3976190b5598a1c481900ebad776174a0aab807e
5
5
  SHA512:
6
- metadata.gz: c27972de86ad44ca9d94f292a969072faac2406f13fbb77cccdf9256547bf4f8c1ac66b7d1928eaf4e786811ebf47b9c6db4f8c5b6cdfb176517ecb316463dc0
7
- data.tar.gz: 859ed513fc732443d4873bdcb7e128c7dcf6dd125c3bdac8dc789b426bf57a9559d3ea95d80f618c27ab2f31392b1bb34b10e4d345b976ef9919248590e5fb7a
6
+ metadata.gz: 76a5798bd73f9e8bec2332514809567b7321cfd02db366065df4672fb015d8abfc18b8402a0e0008794ba72470fccb7b29442cfc456f59c126213536105a258e
7
+ data.tar.gz: bb9734eb79836516d32ef471e2f0aaccab5c855d9dda1404fe02f41f04233b85f0c331d5abdb5cf944c53619857340e3f06c667a254debd75760394d8d4a7167
@@ -18,7 +18,9 @@ module RSpec
18
18
  config = ::SauceRSpec.config
19
19
  return rspec_register(example_group) unless config.sauce?
20
20
 
21
- examples = example_group.examples
21
+ # must use `descendant_filtered_examples` to ensure all examples
22
+ # including those from nested example groups are included.
23
+ examples = example_group.descendant_filtered_examples
22
24
  new_examples = []
23
25
  examples.each do |ex|
24
26
  # Use index to allow multiple duplicate caps to have unique ids
@@ -44,6 +44,7 @@ module SauceRSpec
44
44
  meta[:full_description] = meta[:old_full_description]
45
45
 
46
46
  caps = example.caps
47
+ fail 'Example has no caps' unless caps
47
48
  full_description = example.full_description
48
49
 
49
50
  browser = caps[:browserName].capitalize
@@ -103,6 +104,7 @@ module SauceRSpec
103
104
  passed = RSpec.current_example.exception.nil?
104
105
  passed = { passed: passed }
105
106
  passed_json = Oj.dump(passed)
107
+ fail 'driver is nil' unless driver
106
108
  update_job_url = "#{user}/jobs/#{driver.session_id}"
107
109
 
108
110
  wait_true(timeout) do
@@ -1,4 +1,4 @@
1
1
  module SauceRSpec
2
- VERSION = '1.0.4' unless defined? ::SauceRSpec::VERSION
3
- DATE = '2015-10-20' unless defined? ::SauceRSpec::DATE
2
+ VERSION = '1.0.5' unless defined? ::SauceRSpec::VERSION
3
+ DATE = '2015-10-30' unless defined? ::SauceRSpec::DATE
4
4
  end
data/release_notes.md CHANGED
@@ -1,3 +1,10 @@
1
+ #### v1.0.5 2015-10-30
2
+
3
+ - [4d29cdd](https://github.com/bootstraponline/sauce_rspec/commit/4d29cdda614ac93b259913f3ca3b75a7a427417d) Release 1.0.5
4
+ - [8bf5955](https://github.com/bootstraponline/sauce_rspec/commit/8bf5955c68b9f86b4b602a31b547ef12a41cef19) Use example_group.descendant_filtered_examples
5
+ - [b3d929b](https://github.com/bootstraponline/sauce_rspec/commit/b3d929bbff13d9ea5bb91cd5d35b828fa8293ad1) Add asserts for caps/driver
6
+
7
+
1
8
  #### v1.0.4 2015-10-20
2
9
 
3
10
  - [5a079f4](https://github.com/bootstraponline/sauce_rspec/commit/5a079f464ab372b0e134891754ee313f3a5ae4ed) Release 1.0.4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec