Skip to content

Commit a7b06a2

Browse files
committed
Surround http_adapter specs with disable/enable net connect.
1 parent 66ac4f0 commit a7b06a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/rdf/spec/http_adapter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
raise '`http_adapter` must be defined with `let(:http_adapter`' unless
1010
defined? http_adapter
1111
end
12+
before(:each) {WebMock.disable_net_connect!}
13+
after(:each) {WebMock.allow_net_connect!}
1214

1315
let(:uri) {"http://ruby-rdf.github.com/rdf/etc/doap.nt"}
1416

0 commit comments

Comments
 (0)