Sha256: 580ab5fc460e094ea1d54d1d98b1226fe55fe1d78ecd9ceb9ce78702b2d048f5
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' # to stub def EventMachine.run(&block) block.call end describe Tunnelss do describe '.run!' do context 'with no args' do it 'works' do mock(EventMachine).start_server('127.0.0.1', 443, Tunnelss::HttpsProxy, 80) Tunnelss.run! end end context 'with args' do it 'works' do mock(EventMachine).start_server('127.0.0.1', 443, Tunnelss::HttpsProxy, 80) Tunnelss.run!('127.0.0.1:443', '127.0.0.1:80') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tunnelss-0.1.3 | spec/tunnelss_spec.rb |
tunnelss-0.1.2 | spec/tunnelss_spec.rb |
tunnelss-0.1.1 | spec/tunnelss_spec.rb |
tunnelss-0.1.0 | spec/tunnelss_spec.rb |