results_keeper_rspec 0.1.0 → 0.1.1

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 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b2013033048ff95c8e4fcab9c5a5024342d3c3d
4
- data.tar.gz: a33904ff0636b364139ca2a7e084cee0ad03c30c
3
+ metadata.gz: 13493f8995a21d5c64155dcea66c093c8a534247
4
+ data.tar.gz: 0c87e74790883e2afe40b2ad7791570941eb2eaa
5
5
  SHA512:
6
- metadata.gz: 021939909037c75687d96f1ceb9d3b9e9e0b82681d89f63370b747cbd0aa017338aa7ec0d7ad2c50f30580cfce6fee877727a77f2da8ffca19c854af3c5a486c
7
- data.tar.gz: 69cdf1a84f5fece3e71d99c78067b66d5a3b6022bc7ecf65a2c65363bba33573a4e83037d545efbe67560b2c626dfaf9fb12f2643ab54ff242271fc84030a314
6
+ metadata.gz: 12e0f787e9e2d76c1d4476a3d1a4adbcef26908986324ab6d65a5392717fa16ed634a06eb904f096d9d8b0d2c9fe2f6868b5d1b54fffeceb04303f168d2039c8
7
+ data.tar.gz: a0d84baf93866e121da31b4b9600360ab5449b41aafd67594025d4a696e81edeca18e62d0d1dd619f9e33ff23b8cebcdade2ca2212edeab1d489c8b3c069116d
@@ -29,7 +29,7 @@ class ResultsKeeperRspec
29
29
 
30
30
  def send_test(scenario)
31
31
  test_duration = Time.now - scenario.metadata[:execution_result].started_at
32
- @screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOT']
32
+ @screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOTS']
33
33
  status = scenario.exception ? 'failed' : 'passed'
34
34
  scenario_error = scenario.exception.message if scenario.exception
35
35
  run_path = "rspec #{scenario.location}"
@@ -72,7 +72,7 @@ class ResultsKeeperRspec
72
72
  end
73
73
 
74
74
  def send_screenshot(screenshot_path)
75
- if ENV['SEND_SCREENSHOT']
75
+ if ENV['SEND_SCREENSHOTS']
76
76
  t1 = Thread.new do
77
77
  params = { project: @revision['project_id'], revision: @revision['revision_id'], test: @test['id'] }
78
78
  RestClient.post("http://#{@host}:#{@port}/api/tests/upload_screenshot",
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov