schmurfy-bacon 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a528245ce5236bc7d393a4fcc2814b25e887e539
4
- data.tar.gz: 6e30b927e619f4d3e97d00649126e79729ed22a4
3
+ metadata.gz: 5e24a98a372a6db0f28f2dc5bca324fcdd54cecd
4
+ data.tar.gz: 8ecb518435a581fc5d79c382bb05ce57d43713a7
5
5
  SHA512:
6
- metadata.gz: d4f0c06669923e989e26bf802e7412cbcd5527fd93f068c3e4c6d3cea0ff234b3fdbdb44d0dbea1f580f0274a17d7e23926e62ad377d97389948f9b53ffd7f63
7
- data.tar.gz: 486e17393476b8b902ab9ce63189cda45f5c693b00412ff03cb292aae8b648ff00a8a2b31b7d7dd6bf1ede4658804ae9ac04f60798162282784c33f45f25c63f
6
+ metadata.gz: f17963d3cdfbc56c603817b1aa790b261c50d7e6ce8d5bc517ddeff296af098dc18c0dce91743594872abef6ee1f6b2490222b9587bf2d552f34817cf27e3373
7
+ data.tar.gz: 7e2d57130e114cb4435f9e59b0e1b45e32cf6f35533f90be180a2fd4534485154a98cc0007bf8813b3bf9d6188aff44938b87b8207c422fa360d5563b2053ea4
data/lib/bacon.rb CHANGED
@@ -118,9 +118,12 @@ module Bacon
118
118
  begin
119
119
  prev_req = nil
120
120
 
121
- timing << Hitimes::Interval.measure do
122
- execute_spec do
121
+ execute_spec do
122
+ timing << Hitimes::Interval.measure do
123
123
  @before.each { |block| instance_eval(&block) }
124
+ end
125
+
126
+ timing << Hitimes::Interval.measure do
124
127
  prev_req = Counter[:requirements]
125
128
  instance_eval(&spec)
126
129
  end
data/lib/bacon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bacon
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -21,8 +21,11 @@ module BetterOutput
21
21
 
22
22
  case error_type
23
23
  when ""
24
- duration = (timing[0] * 1000).to_i
25
- puts "#{spaces} #{Color.green}✔#{Color.reset} #{description} [#{duration} ms]"
24
+ before_duration = (timing[0] * 1000).to_i
25
+ test_duration = (timing[1] * 1000).to_i
26
+ total = (timing.inject(:+) * 1000 ).to_i
27
+
28
+ puts "#{spaces} #{Color.green}✔#{Color.reset} #{description} [#{total} ms (#{before_duration} + #{test_duration})]"
26
29
 
27
30
  when :failed
28
31
  puts "#{spaces} #{Color.red}✘#{Color.reset} #{description}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schmurfy-bacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Neukirchen