async-rspec 1.7.0 → 1.8.0

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
  SHA256:
3
- metadata.gz: b82909dd774fe15191c43b09b44d2276f92538f7602230917d92a90ecc3c9e75
4
- data.tar.gz: d4e2b8722931ece8de4fd5580b69977aacf07e482df5640d91a66231c0715271
3
+ metadata.gz: 6b16775a1318cfc18c1d2f08ce937291e5b5a76f233a83cad775cc65e4a85444
4
+ data.tar.gz: fbc4009e8b7df715903c33e0e57a863182f3000c9f7e39b44177f759da4b4713
5
5
  SHA512:
6
- metadata.gz: 6699ca96c6db25094e0705cc4e17e8ac4e28a6127f9e57192269a10b1361cda80ebfe5963de1850493f3ef2ba50122c391bf957fcdcba838bea857404fbcee45
7
- data.tar.gz: 5246399920a6b4dcd41a3070b227e8d93eae3dff252ae2e15651ee9fe4b97d5254d7c110fda490bf2c5475d6f221b43c9e777ff64eede3d767034bfe1169abe4
6
+ metadata.gz: 4079b21429b84d174e922ace80aad05a126e2ea68ee47248a46f13585a3ac24e898eb767ba0bb039d80b9aacdedeb28b64bd0ea6a265de3ae457c6e45c2fa877
7
+ data.tar.gz: 3b231e51b87424651f97e619a30f61726da951f5a22984eb77770b200d626a862f9ca08f6dc0161f17a32daee13ab051ebf52b3bf1adbc6dee3a76d420523d89
@@ -60,7 +60,7 @@ module Async
60
60
  yield "expected within #{limit}"
61
61
  end
62
62
  when Integer
63
- unless value < limit
63
+ unless value <= limit
64
64
  yield "expected at most #{limit}"
65
65
  end
66
66
  end
@@ -87,7 +87,7 @@ module Async
87
87
  end
88
88
 
89
89
  check(allocation.size, acceptable[:size]) do |expected|
90
- @errors << "allocated #{allocation.count} #{klass} instances, #{allocation.size} bytes, #{expected} instances"
90
+ @errors << "allocated #{allocation.count} #{klass} instances, #{allocation.size} bytes, #{expected} bytes"
91
91
  end
92
92
  end
93
93
 
@@ -74,7 +74,7 @@ module Async
74
74
  end
75
75
 
76
76
  def capture(&block)
77
- allocated = nil
77
+ GC.start
78
78
 
79
79
  begin
80
80
  GC.disable
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module RSpec
23
- VERSION = "1.7.0"
23
+ VERSION = "1.8.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec