We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03ef04 commit 11b982bCopy full SHA for 11b982b
spec/client_spec.rb
@@ -39,13 +39,12 @@
39
end.to raise_error(described_class::BadCredentialsError)
40
end
41
42
- before { ENV["PAGES_DISABLE_NETWORK"] = nil }
43
-
44
it "supresses network accesses if requested" do
45
WebMock.disable_net_connect!
46
47
- ENV["PAGES_DISABLE_NETWORK"] = "1"
48
- expect(subject.contributors("jekyll/github-metadata")).to be(false)
+ with_env("PAGES_DISABLE_NETWORK", "1") do
+ expect(subject.contributors("jekyll/github-metadata")).to be(false)
+ end
49
50
51
it "allows network accesses by default" do
0 commit comments