results_keeper_rspec 0.0.2 → 0.0.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 +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21ddda9f43b3cb4709785f361b631b29bb4024d5
4
- data.tar.gz: e8760a9fd23404b7022ddda4a5dd28a8e1b87cd8
3
+ metadata.gz: 5860ce352ce9a87317b8bbeadb08396c02fb3dc9
4
+ data.tar.gz: e584da173faf1d1ab3f631177c0fb6ea8f78e5a9
5
5
  SHA512:
6
- metadata.gz: f111e527660fc379db52318053772ab955d7ce8447b777ab4d3b886f75d617ae5b7a57e4999db48cb3498bb2f98a2c4215b5f7854c0d87b44b2429cc1cb5cc7d
7
- data.tar.gz: 2224cbcc2f95bd7abd93d3d147c7c46caf0228ce4588a82cb018af4663ecfe2a68e5cf33ce5b2ac3b3705d009c004df8c738ab92a837bae929ea9114fedfca3b
6
+ metadata.gz: ee9ddcafe3d4823699043a6dc3664f893b257cf38b3a0c209905260ec8038877da6f77cc8e9c7210719689af2f47849ec40eeea491c7a2db1a19774f6a1ada98
7
+ data.tar.gz: 2f436010241e21c804aa492661e5aa8002abf3279d41a5cbd87fe21f96521cfac452d507770488b36105ae0c78a1399cf6c1a3a469004429df6164224fbfc9e9
@@ -28,7 +28,7 @@ class ResultsKeeperRspec
28
28
  end
29
29
 
30
30
  def send_test(scenario)
31
- @screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOT']
31
+ @screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOTS']
32
32
  status = scenario.exception ? 'failed' : 'passed'
33
33
  scenario_error = scenario.exception.message if scenario.exception
34
34
  run_path = "rspec #{scenario.location}"
@@ -70,14 +70,14 @@ class ResultsKeeperRspec
70
70
  end
71
71
 
72
72
  def send_screenshot(screenshot_path)
73
- if ENV['SEND_SCREENSHOT']
73
+ if ENV['SEND_SCREENSHOTS']
74
74
  t1 = Thread.new do
75
75
  params = { project: @revision['project_id'], revision: @revision['revision_id'], test: @test['id'] }
76
76
  RestClient.post("http://#{@host}:#{@port}/api/tests/upload_screenshot",
77
77
  :name_of_file_param => File.new(screenshot_path), :body => params)
78
+ File.delete(screenshot_path)
78
79
  end
79
80
  t1.join
80
- File.delete(screenshot_path)
81
81
  end
82
82
  end
83
83
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: results_keeper_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-13 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flickraw