results_keeper_rspec 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1687c80aaf6ddc7b433b63d4b61f0540612471
|
4
|
+
data.tar.gz: 11d3a6f9158db92e19d303ddf057234e5fe91878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a2ba5e4b5d457f009980352c7921db9291c82bf6246c42f1e4da110ee71046e359d085832a0f5855cebb28c5d1365b729fbb10b66876355c70774533a1f0ba0
|
7
|
+
data.tar.gz: df73c7b5e6c08a767a86f9980a66e188a269906378556e76594eaa5b0241b85770408554e2f1b9aabc130b8185bf51c3fc1d6c5df6a2507dc6b814b34651fba2
|
@@ -30,10 +30,15 @@ module RkRspec
|
|
30
30
|
|
31
31
|
def save_screenshot(scenario)
|
32
32
|
if scenario.exception
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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.
|
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-
|
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
|
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: []
|