lib/nsisam/fake_client.rb in nsisam-0.7.2 vs lib/nsisam/fake_client.rb in nsisam-0.7.3

- old
+ new

@@ -10,13 +10,16 @@ attr_accessor :expire attr_reader :host, :port def initialize(host="localhost", port="8888") - WebMock.allow_net_connect! @storage = {} @host = host @port = port + end + + def allow_net + WebMock.allow_net_connect! end def download_link_for_file(key) "http://#{@host}:#{@port}/file/#{key}" end