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 +4 -4
- data/VERSION +1 -1
- data/app/models/revision_status_calculator.rb +3 -1
- data/lib/swat/ui/rspec_commands.rb +1 -1
- data/spec/models/full_revision_spec.rb +0 -1
- data/spec/spec_helper.rb +1 -4
- data/sw2at-ui.gemspec +2 -2
- 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: 64cae63480a639cd1c6afce6a1c9839fc20e6275
|
4
|
+
data.tar.gz: e10264512addac8182ca7178831f22881f7b3379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b401767a27b61b485e723016a484045cdef92f722a213c3d2d5a135976dad788ca197b3570d54655acf6724d2e0fa29c7ff6a560d1c0d7f4176bad339db7c10b
|
7
|
+
data.tar.gz: 332aea63680cb5d4cbbc26ed0889409e8fbc548d29bf1e90fa0d39d8bd216e1a09db5ff6cb5fb60d6536ea867708f256a90be55d6b472f80593f2793bba46175
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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
|
@@ -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
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.
|
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.
|
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"]
|