lib/sham_rack.rb in sham_rack-1.3.6 vs lib/sham_rack.rb in sham_rack-1.4.0
- old
+ new
@@ -5,7 +5,14 @@
# ShamRack allows access to Rack applications using Net::Http, but without network traffic.
#
# For more detail, see http://github.com/mdub/sham_rack
#
module ShamRack
+
extend ShamRack::Registration
+
+ def self.reset
+ unmount_all
+ allow_network_connections
+ end
+
end