results_keeper_rspec 0.3.0 → 0.3.1

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: f3cd9a3afd8dee63e52582d6c859e2ddfc512375
4
- data.tar.gz: 278dd795b61ae28b30233b4236881a1fa07cac00
3
+ metadata.gz: 3b1687c80aaf6ddc7b433b63d4b61f0540612471
4
+ data.tar.gz: 11d3a6f9158db92e19d303ddf057234e5fe91878
5
5
  SHA512:
6
- metadata.gz: 370ec76222086a0a668aa4eefb3fbf1e5d1ea584bd1991d50f398c9c209ea713677de912ddbc102fb75333f739dca05d62ef6bb972f2825df06aed39b6177057
7
- data.tar.gz: 2e1cebcd4d4ed7eb1f113238e14158b5ca9dc550d5751999d0bfd6f8ef503ec37cffd00cd7311e70c21d4f17d74efe47122bd5cba97fbb19149f0ba23c83c58d
6
+ metadata.gz: 2a2ba5e4b5d457f009980352c7921db9291c82bf6246c42f1e4da110ee71046e359d085832a0f5855cebb28c5d1365b729fbb10b66876355c70774533a1f0ba0
7
+ data.tar.gz: df73c7b5e6c08a767a86f9980a66e188a269906378556e76594eaa5b0241b85770408554e2f1b9aabc130b8185bf51c3fc1d6c5df6a2507dc6b814b34651fba2
@@ -1,7 +1,6 @@
1
1
  require 'net/http'
2
2
  require 'json'
3
3
  require 'rest_client'
4
- require 'pry'
5
4
  require_relative 'messages'
6
5
  require_relative 'config'
7
6
  require_relative 'test_data_generator'
@@ -30,10 +30,15 @@ module RkRspec
30
30
 
31
31
  def save_screenshot(scenario)
32
32
  if scenario.exception
33
- screenshot_name = "#{Time.now.to_i}_#{rand(1000..9999)}.png"
34
- @file_path = "tmp/screenshots/#{screenshot_name}"
35
- Capybara.page.save_screenshot(@file_path)
36
- @file_path
33
+ begin
34
+ screenshot_name = "#{Time.now.to_i}_#{rand(1000..9999)}.png"
35
+ @file_path = "tmp/screenshots/#{screenshot_name}"
36
+ Capybara.page.save_screenshot(@file_path)
37
+ @file_path
38
+ rescue
39
+ RkRspec::Messages.take_screenshot_error
40
+ nil
41
+ end
37
42
  end
38
43
  end
39
44
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: results_keeper_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov
8
+ - Volodymyr Zubchynskyi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
12
+ date: 2017-12-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: flickraw
@@ -38,7 +39,7 @@ dependencies:
38
39
  - - ">="
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
- description: Results Keeper is a application which can help you to track and manage
42
+ description: Results Keeper is an application which can help you to track and manage
42
43
  your Rspec test results using this gem as a client.
43
44
  email: ivankozakov0@gmail.com
44
45
  executables: []