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.
1 parent 84da924 commit 970ec8cCopy full SHA for 970ec8c
spec/unit/process_spec.rb
@@ -21,6 +21,22 @@ class Browser
21
subject.quit
22
end
23
24
+
25
+ context "env variables" do
26
+ subject { Browser.new(env: { "LD_PRELOAD" => "some.so" }) }
27
28
+ it "passes through env" do
29
+ allow(::Process).to receive(:wait).and_return(nil)
30
+ allow(Client).to receive(:new).and_return(double.as_null_object)
31
32
+ allow(::Process).to receive(:spawn).with({ "LD_PRELOAD" => "some.so" }, any_args)
33
34
+ allow_any_instance_of(Process).to receive(:parse_ws_url)
35
36
+ subject.send(:start)
37
+ subject.quit
38
+ end
39
40
41
42
0 commit comments