sw2at-ui 0.0.2 → 0.0.3

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: 83a7e7611c438f7b811dec376ce4c5c22d1f4025
4
- data.tar.gz: ab32e56dd64b46d4e28ebd4de800c0e388bc2e11
3
+ metadata.gz: 64cae63480a639cd1c6afce6a1c9839fc20e6275
4
+ data.tar.gz: e10264512addac8182ca7178831f22881f7b3379
5
5
  SHA512:
6
- metadata.gz: 27847ea275ad7cb28210c6c19d2d80ebb4d446694dad46bc771f3e66195b8151883be8e876c0c73845b2915db85c114a2cb328c8d87b2c4bd3d0aa1d964ce29d
7
- data.tar.gz: 502d41f757567ed4114cad934b8d653fd9ebd80ac70cf903de0c54defa9be48d70eb20ac150ba194390b86703cc07363e90394d622efb2bfa03c51d8c26d5439
6
+ metadata.gz: b401767a27b61b485e723016a484045cdef92f722a213c3d2d5a135976dad788ca197b3570d54655acf6724d2e0fa29c7ff6a560d1c0d7f4176bad339db7c10b
7
+ data.tar.gz: 332aea63680cb5d4cbbc26ed0889409e8fbc548d29bf1e90fa0d39d8bd216e1a09db5ff6cb5fb60d6536ea867708f256a90be55d6b472f80593f2793bba46175
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -23,7 +23,6 @@ class RevisionStatusCalulator
23
23
  def calculate_and_modify_thread_status(thread)
24
24
  init_total_failed(thread)
25
25
  thread.total_runned = thread.total_examples.to_i - thread.pending_examples.to_i
26
-
27
26
  thread.status = thread_status(thread)
28
27
  thread.status
29
28
  end
@@ -56,6 +55,9 @@ class RevisionStatusCalulator
56
55
  thread.in_progress = true
57
56
  thread.total_failed = failed_tests
58
57
  else
58
+ if failed_tests > 0 && thread.failed_examples == 0
59
+ thread.failed_examples = failed_tests
60
+ end
59
61
  thread.total_failed = thread.failed_examples
60
62
  end
61
63
  end
@@ -152,7 +152,7 @@ module Swat
152
152
  ENV_VARS.db_env_number => index,
153
153
  })
154
154
 
155
- [ env_params, rake_command('db:version') ].join(' ')
155
+ [ env_params, rake_command('db:drop') ].join(' ')
156
156
  end
157
157
 
158
158
  def build_params(params)
@@ -232,7 +232,6 @@ describe FullRevision do
232
232
  # Fetch
233
233
  FullRevision.fetch(branch: 'swat-edge-2', user: 'vitaliyt-pc', time: '1434818198')
234
234
 
235
-
236
235
  revision_root.reload
237
236
  expect(revision_root.nested_status.name).to eq('in_progress_failed')
238
237
  # Full fetch shows correct result
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,7 @@
1
- require 'bundler/setup'
2
- Bundler.setup
3
-
4
1
  require 'pry'
5
2
  require 'rails'
6
3
  require 'fire-model'
7
- require 'swat_ui'
4
+ require 'sw2at-ui'
8
5
 
9
6
  # models
10
7
  require Swat::Engine.root.join 'app/models/revision'
data/sw2at-ui.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: sw2at-ui 0.0.2 ruby lib
5
+ # stub: sw2at-ui 0.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "sw2at-ui"
9
- s.version = "0.0.2"
9
+ s.version = "0.0.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sw2at-ui
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
  - Vitaly Tarasenko