results_keeper_rspec 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/results_keeper_rspec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52df7baa412d79d02d3866a147a6f9ddeab7e547
|
4
|
+
data.tar.gz: 12a67751c5d78a64e55831641ad2dd0d7aef3620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b097344fa8b5e98de0be672f6e949488646b76b04999e8b9c42fd9c120472fbbebb1a3b0255418719d99465bb92867096039ad686ee50a2072a5f085b452519c
|
7
|
+
data.tar.gz: 36af413fd43c42af1ec6801169f11579d4440bc9dac4a255f007d1e4d678378d442bccc2e1f26a48d314840cd2769eb7a3ee256e71368f82e2aa7b2ac16cbf7d
|
data/lib/results_keeper_rspec.rb
CHANGED
@@ -3,6 +3,7 @@ require 'json'
|
|
3
3
|
require 'rest_client'
|
4
4
|
require_relative 'string'
|
5
5
|
require 'singleton'
|
6
|
+
require 'fileutils'
|
6
7
|
|
7
8
|
class ResultsKeeperRspec
|
8
9
|
include Singleton
|
@@ -76,7 +77,7 @@ class ResultsKeeperRspec
|
|
76
77
|
params = { project: @revision['project_id'], revision: @revision['revision_id'], test: @test['id'] }
|
77
78
|
RestClient.post("http://#{@host}:#{@port}/api/tests/upload_screenshot",
|
78
79
|
:name_of_file_param => File.new(screenshot_path), :body => params)
|
79
|
-
|
80
|
+
FileUtils.rm(screenshot_path)
|
80
81
|
end
|
81
82
|
end
|
82
83
|
|