Sha256: 93e8f0e8ef4037070c5a86d3603d9ff427ca21c9a7673c174530bd5099fc9dbf

Contents?: true

Size: 246 Bytes

Versions: 23

Compression:

Stored size: 246 Bytes

Contents

class MockNetHttp
  
  attr_accessor :connection
  
  def initialize(*args)
    @connection = mock(:connection)    
  end
  
  def start
    yield @connection if block_given?
  end  
    
  def method_missing(*args)
    return self
  end
    
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
LVS-JSONService-0.3.2 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.3.3 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.5.4 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.5.3 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.5.2 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.5.1 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.5.0 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.9 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.8 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.7 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.6 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.5 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.4 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.3 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.2 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.1 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.4.0 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.3.9 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.3.8 spec/lvs/json_service/mock_net_http.rb
LVS-JSONService-0.3.7 spec/lvs/json_service/mock_net_http.rb