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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/results_keeper_rspec.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e0148433349bed5f71bd8de80b772c810b86fd
4
- data.tar.gz: 18d79328b1f0c2e38be8b57805fb5dd263b81957
3
+ metadata.gz: 52df7baa412d79d02d3866a147a6f9ddeab7e547
4
+ data.tar.gz: 12a67751c5d78a64e55831641ad2dd0d7aef3620
5
5
  SHA512:
6
- metadata.gz: 6df7c7111dd05d3c38d5a8c46af44eb2b44ab4e6dd6ae0591b1904a3ad9830c66a9181d04abb712881edb801fd60904a75a520b88e876b115b86991ec83bf6cc
7
- data.tar.gz: ce21a631a988f299c0d2cf559cca36ffce3a438c9c99630aa1b5380c46e9d0727cc54e27d8f0a0b9dfc0c8baee6bd5ed1daba65abefa76778030cdc320fa947e
6
+ metadata.gz: b097344fa8b5e98de0be672f6e949488646b76b04999e8b9c42fd9c120472fbbebb1a3b0255418719d99465bb92867096039ad686ee50a2072a5f085b452519c
7
+ data.tar.gz: 36af413fd43c42af1ec6801169f11579d4440bc9dac4a255f007d1e4d678378d442bccc2e1f26a48d314840cd2769eb7a3ee256e71368f82e2aa7b2ac16cbf7d
@@ -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
- File.delete(screenshot_path)
80
+ FileUtils.rm(screenshot_path)
80
81
  end
81
82
  end
82
83
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: results_keeper_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov