We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.best
1 parent dda76e8 commit 1e7b6a8Copy full SHA for 1e7b6a8
test/async/container.rb
@@ -26,10 +26,6 @@
26
end
27
28
29
- it "can get best container class" do
30
- expect(Async::Container.best_container_class).not.to be_nil
31
- end
32
-
33
with ".new" do
34
let(:container) {Async::Container.new}
35
@@ -38,4 +34,16 @@
38
container.stop
39
40
36
37
+
+ with ".best" do
+ it "can get the best container class" do
+ expect(Async::Container.best_container_class).not.to be_nil
41
+ end
42
43
+ it "can get the best container class if fork is not available" do
44
+ expect(subject).to receive(:fork?).and_return(false)
45
46
+ expect(Async::Container.best_container_class).to be == Async::Container::Threaded
47
48
49
0 commit comments